首页
题库
网课
在线模考
桌面端
登录
搜标题
搜题干
搜选项
0
/ 200字
搜索
单项选择题
Whatallowstheprogrammertodestroyanobjectx?()
A.x.delete()
B.x.finalize()
C.Runtime.getRuntime().gc()
D.Explicitlysettingtheobject’sreferencetonull.
E.Ensuringtherearenoreferencestotheobject.
F.Onlythegarbagecollectionsystemcandestroyanobject.
点击查看答案&解析
手机看题
你可能感兴趣的试题
单项选择题
publicvoidfoo(booleana,booleanb){if(a){System.out.println(A”);}elseif(a&&b){System.out.println(A&&B”);}else{17.if(!b){System.out.println(notB”);}else{System.out.println(ELSE”);}}}Whatiscorrect?()
A.Ifaistrueandbistruethentheoutputis“A&&B”.
B.Ifaistrueandbisfalsethentheoutputis“notB”.
C.Ifaisfalseandbistruethentheoutputis“ELSE”.
D.Ifaisfalseandbisfalsethentheoutputis“ELSE”.
A.out.println(A”);}elseif(a&&b){System.out.println(A&&B”);}else{17.if(!b){System.out.println(notB”);}else{System.out.println(ELSE”);}}}Whatiscorrect?()
A.Ifaistrueandbistruethentheoutputis“A&&B”.
B.Ifaistrueandbisfalsethentheoutputis“notB”.
C.Ifaisfalseandbistruethentheoutputis“ELSE”.
D.Ifaisfalseandbisfalsethentheoutputis“ELSE”.
点击查看答案&解析
手机看题
单项选择题
Howcanyoucreatealistenerclassthatreceiveseventswhenthemouseismoved?()
A.ByextendingMouseListener.
B.ByimplementingMouseListener.
C.ByextendingMouseMotionListener.
D.ByimplementingMouseMotionListener.
E.EitherbyextendingMouseMotionListenerorextendingMouseListener.
F.EitherbyimplementingMouseMotionListenerorimplementingMouseListener.
点击查看答案&解析
手机看题
微信扫码免费搜题