itgle.com

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

题目
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

E.3444611

F.3444647


相似考题
更多“classOutput{publicstaticvoidmain(String[]args){inti=4;System.out.print("3"+i+"");System.out.print(i+4+"6");System.out.println(i+"7");}}结果为:() ”相关问题
  • 第1题:

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

    B.34

    C.43

    D.14


    参考答案:B

  • 第2题:

    现有: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.beforecatch

    B.beforeafterdone

    C.beforecatchdone

    D.beforeaftercatch


    参考答案:B, C

  • 第3题:

    给定以下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、finallyexceptioninmainfinished

    B、exceptioninmainfinally

    C、finallyfinished

    D、finallyexceptioninmainfinished


    正确答案:C

  • 第4题:

    程序:classTestApp{publicstaticvoidmain(String[]args){for(inti=0;i<5;i++)System.out.print(i+1);System.out.println(i);}}上述程序运行后的结果是哪项?()

    A.123456

    B.123455

    C.123450

    D.编译错误


    参考答案:D

  • 第5题:

    现有:classOutput{publicstaticvoidmain(String[]args){inti=5:System.out.print("4"+i+"");System.out.print(i+5+"7");System.out.println(i+"8");}}结果为:()

    A.99722

    B.955758

    C.4510758

    D.459722


    参考答案:C