import java.awt.*;
public class
test {
TextField tf;
public void initComp()
{
Panel p = new Panel();
tf = new TextField();
p.add(tf);
}
public static void main(
String args[])
{
Frame f = new Frame("test");
f.setVisible(true);
f.pack();
test t = new test();
f.add(test.initComp());
}
}
is Panel p in initComp() method eligible for garbage collection by the time the method exits?
raymond