问题:
public class X {
public object m () {
object o = new float (3.14F);
object oa = new object [1];
oa[0]= o;
o = null;
return oa[0];
}
}
When is the float object created in line 3, eligible for garbage collection?()
A . Just after line 5
B . Just after line 6
C . Just after line 7 (that is, as the method returns)
D . Never in this method.
public class X {
public object m () {
object o = new float (3.14F);
object oa = new object [1];
oa[0]= o;
o = null;
return oa[0];
}
}
When is the float object created in line 3, eligible for garbage collection?()
● 参考解析
本题暂无解析