【C5】
A.hurt
B.sore
C.aches
D.feelings
第1题
A.Objectsaredeletedwhentheycannolongerbeaccessedthroughanyreference.
B.Thefinalize()methodwilleventuallybecalledoneveryobject.
C.Thefinalize()methodwillneverbecalledmorethanonceonanobject.
D.Anobjectwillnotbegarbagecollectedaslongasitispossibleforanactivepartoftheprogramtoaccessitthroughareference.
E.Thegarbagecollectorwilluseamarkandsweepalgorithm.
第2题
A.Thevalueofanintisundetermined.
B.Thevalueofallnumerictypesiszero.
C.Thecompilermayissueanerrorifthevariableisusedbeforeitisinitialized.
D.ThevalueofaStringvariableis""(emptystring).
E.Thevalueofallobjectvariablesisnull.
第3题
A.ABarisaBaz.
B.AFoohasaBar.
C.ABazisaFoo.
D.AFooisaBaz.
E.ABazhasaBar.
第4题
A.Theoperationcol1.retainAll(col2)willnotmodifythecol1object.
B.Theoperationcol1.removeAll(col2)willnotmodifythecol2object.
C.Theoperationcol1.addAll(col2)willreturnanewcollectionobject,containingelementsfrombothcol1 andcol2.
D.Theoperationcol1.containsAll(Col2)willnotmodifythecol1object.
第5题
A.Thecodewillfailtocompile.
B.Theconstructorinathattakesanintasanargumentwillneverbecalledasaresultofconstructingan objectofclassborc.
C.Classchasthreeconstructors.
D.Objectsofclassbcannotbeconstructed.
E.Atmostoneoftheconstructorsofeachclassiscalledasaresultofconstructinganobjectofclassc.
第6题
A.(a=="Hello")
B.(a==b)
C.(a==c)
D.a.equals(b)
E.a.equals(d)
第7题
A.TheprogramwillterminatewithanArrayIndexOutOfBoundsException.
B.TheprogramwillterminatewithaNullPointerException.
C.4willbewrittentostandardoutput.
D.6willbewrittentostandardoutput.
E.7willbewrittentostandardoutput.
第8题
CODEFRAGMENTa:int[][]tab={{0,0,0},{0,0,0}};
CODEFRAGMENTb:inttab[][]=newint[4][];for(inti=0;i
CODEFRAGMENTc:inttab[][]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
CODEFRAGMENTd:inttab[3][2];
CODEFRAGMENTe:int[]tab[]={{0,0,0},{0,0,0},{0,0,0},{0,0,0}};
第9题
A.Markthemethodwiththekeywordpublic.
B.Markthemethodwiththekeywordprotected.
C.Markthemethodwiththekeywordprivate.
D.Markthemethodwiththekeywordpackage.
E.Donotmarkthemethodwithanyaccessibilitymodifiers.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!