网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
classOutput{publicstaticvoidmain(String[]args){inti=4;System.out.print("3"+i+"");System.out.print(i+4+"6");System.out.println(i+"7");}}结果为()
A.78611
B.744647
C.348611
D.348647
参考答案
更多 “ classOutput{publicstaticvoidmain(String[]args){inti=4;System.out.print(3+i+);System.out.print(i+4+6);System.out.println(i+7);}}结果为() A.78611B.744647C.348611D.348647 ” 相关考题
考题
classOutput{publicstaticvoidmain(String[]args){inti=4;System.out.print(3+i+);System.out.print(i+4+6);System.out.println(i+7);}}结果为:()
A.78611B.744647C.348611D.348647E.3444611F.3444647
考题
classFlow{publicstaticvoidmain(String[]args){try{System.out.print(before);doRiskyThing();System.out.print(after);}catch(Exceptionfe){System.out.print(catch);}System.out.println(done);}publicstaticvoiddoRiskyThing()throwsException{//thiscodereturnsunlessitthrowsanException}}可能会产生下面哪两项结果?()A.beforeB.beforecatchC.beforeafterdoneD.beforecatchdone
考题
classBirds{publicstaticvoidmain(String[]args){try{thrownewException();}catch(Exceptione){try{thrownewException();}catch(Exceptione2){System.out.print(inner);}System.out.print(middle);}System.out.print(outer);}}结果为:()A.innerB.innerouterC.middleouterD.innermiddleouter
考题
classBeta{publicstaticvoidmain(String[]args){Integerx=newInteger(6)*7;if(x!=42){System.out.print(42);}elseif(x〈newInteger(44-1)){System.out.println(less);}else{System.out.print(done);}}}结果是什么?()A.lessB.42C.doneD.编译失败
考题
publicclassTestApp{publicstaticvoidmain(String[]args){try{inti=0;intj=1/i;System.out.println(1”);}catch(Exceptione){System.out.print(3”);}finally{System.out.print(4”);}}}上述程序运行后的输出是哪项?()
A.4B.34C.43D.14
考题
程序:classTestApp{publicstaticvoidmain(String[]args){for(inti=0;i5;i++)System.out.print(i+1);System.out.println(i);}}上述程序运行后的结果是哪项?()
A.123456B.123455C.123450D.编译错误
考题
现有:classFlow{publicstaticvoidmain(String[]args)try{System.out.print(before);doRiskyThing();System.out.print(after);}catch(Exceptionfe){System.out.print(catch);}System.out.println(done);}publicstaticvoiddoRiskyThing()throwsException{//thiscodereturnsunlessitthrowsanException}}可能会产生哪两项结果?()A.beforecatchB.beforeafterdoneC.beforecatchdoneD.beforeaftercatch
考题
现有:classOutput{publicstaticvoidmain(String[]args){inti=5:System.out.print(4+i+);System.out.print(i+5+7);System.out.println(i+8);}}结果为:()
A.99722B.955758C.4510758D.459722
考题
给定以下JAVA代码,这段代码编译运行后输出的结果是( )publicclassTest{publicstaticintaMethod(inti)throwsException{try{returni/10;}catch(Exceptionex){thrownewException("exceptioninaaMothod");}finally{System.out.print("finally");}}publicstaticvoidmain(String[]args){try{aMethod(0);}catch(Exceptionex){System.out.print("exceptioninmain");}System.out.print("finished");}}A、finallyexceptioninmainfinishedB、exceptioninmainfinallyC、finallyfinishedD、finallyexceptioninmainfinished
热门标签
最新试卷