9.
1) public class X{
2) public Object m(){
3) Object o=new Float(3.14F);
4) Object[] oa = new Object[];
5) oa[0]=o;
6) o=null;
7) oa[0]=null;
8) System.out.println(oa[0]);
9) }
10) }
Which line is the earliest point the object O refered is definitely elibile to be garbage collectioned?
A.after line 4
B.After line 5
C.After line 6
D.After line 7
E.After line 9
答案:
21.
public class ConstOver{
public ConstOver(int x,int y,int z){}
}Which two overload the ConstOver Constructor?
a.constOver(){}
b.protected int ConstOver(){}
c.private ConstOver(int z,int y,byte x){}
d.public void ConstOver(byte x, byte y, byte z){}
e.public Object ConstOver(int x,int y,int z){}
答案:请高手详解,,,
1) public class X{
2) public Object m(){
3) Object o=new Float(3.14F);
4) Object[] oa = new Object[];
5) oa[0]=o;
6) o=null;
7) oa[0]=null;
8) System.out.println(oa[0]);
9) }
10) }
Which line is the earliest point the object O refered is definitely elibile to be garbage collectioned?
A.after line 4
B.After line 5
C.After line 6
D.After line 7
E.After line 9
答案:
21.
public class ConstOver{
public ConstOver(int x,int y,int z){}
}Which two overload the ConstOver Constructor?
a.constOver(){}
b.protected int ConstOver(){}
c.private ConstOver(int z,int y,byte x){}
d.public void ConstOver(byte x, byte y, byte z){}
e.public Object ConstOver(int x,int y,int z){}
答案:请高手详解,,,
或者给个网址有这个内容的也可以,
thanks!!