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(tha

题目
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?() ”相关问题
  • 第1题:

    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];


    参考答案:B

  • 第2题:

    publicclassX{publicobjectm(){objecto=newfloat(3.14F);objectoa=newobject[1];oa[0]=o;o=null;returnoa[0];}}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?()

    A.Justafterline5

    B.Justafterline6

    C.Justafterline7(thatis,asthemethodreturns)

    D.Neverinthismethod.


    参考答案:D

  • 第3题:

    Je3A5294 某750kV母线最大短路电流为5000OA,则母线保护用电流互感器变比可选择( )

    A)5P10 4000/1;(B)5P20 2500/1;(C)10P10 40O0/1;(D)10P20 40O0/1。

    答案:/
    解析:

  • 第4题:

    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).


    参考答案:C

  • 第5题:

    有以下程序include main (){ printf("%d\n", NULL); }A.0B.1C.-1D.NULL没定义,出错

    有以下程序 #include <stdio .h> main () { printf("%d\n", NULL); }

    A.0

    B.1

    C.-1

    D.NULL没定义,出错


    正确答案:A
    解析:在C语言中NULL的ASCII码值为0,而输出函数要求以整形格式输出,故最后的输出数为0。所以,4个选项中选项A符合题意。