网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
publicObjectm(){11.Objecto=newFloat(3.14F);12.Object[]oa=newObject[1];13.oa[0]=o;14.o=null;15.returnoa[0];16.}WhenistheFloatobject,createdinline11,eligibleforgarbagecollection?()
A.Justafterline13.
B.Justafterline14.
C.Neverinthismethod.
D.Justafterline15(thatis,asthemethodreturns).
参考答案
更多 “ publicObjectm(){11.Objecto=newFloat(3.14F);12.Object[]oa=newObject[1];13.oa[0]=o;14.o=null;15.returnoa[0];16.}WhenistheFloatobject,createdinline11,eligibleforgarbagecollection?() A.Justafterline13.B.Justafterline14.C.Neverinthismethod.D.Justafterline15(thatis,asthemethodreturns). ” 相关考题
考题
1.public class GC{2.private Objec to;3.private void doSomethingElse(Object obj){o=obj;}4.public void doSomething(){5.Object o=new Object();6.doSomethingElse(o);7.o=new Object();8.doSomethingElse(null);9.o=null;10.}11.}When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()A.Line5B.Line6C.Line7D.Line8E.Line9F.Line10
考题
publicclassX{2.publicobjectm(){3.objecto=newfloat(3.14F);4.object[]oa=newobject[1];5.oa[0]=o;6.o=null;7.oa[0]=null;10.returno;9.}10.}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?()
A.Justafterline5.B.Justafterline6.C.Justafterline7.D.Justafterline8(thatis,asthemethodreturns).
考题
publicclassX(2.publicobjectm(){3.objecto=newfloat(3.14F);4.object[]oa=newobject[1];5.oa[0]=o;6.o=null;7.returnoa[0];8.}9.}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?()
A.Justafterline5B.Justafterline6C.Justafterline7(thatis,asthemethodreturns)D.Neverinthismethod.
考题
floatf[][][]=newfloat[3][][];floatf0=1.0f;float[][]farray=newfloat[1][1];Whatisvalid?()
A.f[0]=f0;B.f[0]=farray;C.f[0]=farray[0];D.f[0]=farray[0][0];
考题
publicclassX{publicobjectm(){objecto=newfloat(3.14F);objectoa=newobject[1];oa[0]=o;o=null;oa[0]=null;returno;}}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?()
A.Justafterline5.B.Justafterline6.C.Justafterline7.D.Justafterline8(thatis,asthemethodreturns).
考题
publicclassX{publicobjectm(){objecto=newfloat(3.14F);objectoa=newobject[1];oa[0]=o;o=null;returnoa[0];}}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?()
A.Justafterline5B.Justafterline6C.Justafterline7(thatis,asthemethodreturns)D.Neverinthismethod.
考题
有以下程序include main (){ printf("%d\n", NULL); }A.0B.1C.-1D.NULL没定义,出错
有以下程序 #include <stdio .h> main () { printf("%d\n", NULL); }A.0B.1C.-1D.NULL没定义,出错
考题
Je3A5294 某750kV母线最大短路电流为5000OA,则母线保护用电流互感器变比可选择( )A)5P10 4000/1;(B)5P20 2500/1;(C)10P10 40O0/1;(D)10P20 40O0/1。
热门标签
最新试卷