Java认证
SCJP认证历年经典考题(10)
日期:2013-10-22 11:47

QuestionNo41
Given:
1.publicclassX(
2.publicobjectm(){
3.objecto=newfloat(3.14F);
4.objectoa=newobject[1];
5.oa[0]=o;
6.o=null;
7.returnoa[0];
8.}
9.}
Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?
A.Justafterline5
B.Justafterline6
C.Justafterline7(thatis,asthemethodreturns)
D.Neverinthismethod.
Answer:D

QuestionNo42
Given:
3.stringfoo=ABCDE;
4.foo.substring(3);
5.foo.concat(XYZ);
6.
Typethevalueoffooatline6.
Answer:ABCDE



1/3 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/14 00:06