网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
interfaceI{voidgo();}2.3.abstractclassAimplementsI{}4.5.classCextendsA{6.voidgo(){}7.}结果是什么?()
A.代码通过编译
B.由于多个错误导致编译失败
C.由于第1行的错误导致编译失败
D.由于第6行的错误导致编译失败
参考答案
更多 “ interfaceI{voidgo();}2.3.abstractclassAimplementsI{}4.5.classCextendsA{6.voidgo(){}7.}结果是什么?() A.代码通过编译B.由于多个错误导致编译失败C.由于第1行的错误导致编译失败D.由于第6行的错误导致编译失败 ” 相关考题
考题
Whichthreewillcompileandrunwithoutexception?()
A.privatesynchronizedObjecto;B.voidgo(){synchronized(){/*codehere*/}C.publicsynchronizedvoidgo(){/*codehere*/}D.privatesynchronized(this)voidgo(){/*codehere*/}E.voidgo(){synchronized(Object.class){/*codehere*/}F.voidgo(){Objecto=newObject();synchronized(o){/*codehere*/}
考题
classFlibitz{publicstaticvoidmain(String[]args){intgrop=7;newFlibitz().go(grop);System.out.print(grop);}voidgo(intgrop){if(++grop〉7)grop++;System.out.print(grop);}}结果为:()
A.77B.79C.97D.99
考题
classPasser{staticfinalintx=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(++x);}}结果是什么?()
A.55B.56C.65D.66
考题
现有:voidtopGo(){try{middleGo();}catch(Exceptione){System.out.print(catch);}}voidmiddleGo()throwsException{go();system.out.print(latemiddle);}voidgo()throwsExceptiOn{thrownewException();}如果调用topGo(),则结果为:()A.latemiddleB.catchC.latemiddlecatchD.catchIatemiddle
考题
现有:interfaceI{voidgo();}abstractclassAimplementsI{}classCextendsA{voidgo(){}}结果是什么?()
A.代码通过编译B.由于第1行的错误导致编译失败C.由于笫3行的错误导致编译失败D.由于第6行的错误导致编译失败
考题
现有:classTree{privatestaticStringtree=tree;StringgetTree(){returntree;}}classElmextendsTree{privatestaticStringtree=elm;publicstaticvoidmain(String[]args){newElm().go(newTree());}}voidgo(Treet){Strings=t.getTree()+Elm.tree+tree+(newElm().getTree());System.out.println(s);}结果为:()
考题
现有:classPasserfstaticfinalintX=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(x++);}结果是什么?()
A.55B.56C.65D.66
考题
Whichthreewillcompileandrimwithoutexception?()
A.privatesynchronizedObjecto;B.voidgo(){synchronized(){/*codehere*/}}C.publicsynchronizedvoidgo(){/*codehere*/}D.privatesynchronized(this)voidgo(){/*codehere*/}E.voidgo(){synchronized(Object.class){/*codehere*/}}F.voidgo(){Objecto=newObject();synchronized(o){/*codehere*/}}
考题
7.“一个电气连接部分”指的是什么?
热门标签
最新试卷