itgle.com
更多“classFlibitz{publicstaticvoidmain(String[]args){intgrop=7;newFlibitz().go(grop);System.out.print(grop);}voidgo(intgrop){if(++grop〉7)grop++;System.out.print(grop);}}结果为:() ”相关问题
  • 第1题:

    classBitStuff{BitStuffgo(){System.out.print("bits");returnthis;}}classMoreBitsextendsBitStuff{MoreBitsgo(){System.out.print("more");returnthis;}publicstaticvoidmain(String[]args){BitStuff[]bs={newBitStuff(),newMoreBits()};for(BitStuffb:bs)b.go();}}结果为:()

    A.bitsbits

    B.bitsmore

    C.moremore

    D.编译失败


    参考答案:B

  • 第2题:

    classPasser{staticfinalintx=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(++x);}}结果是什么?()

    A.55

    B.56

    C.65

    D.66


    参考答案:C

  • 第3题:

    现有:classPasserfstaticfinalintX=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(x++);}结果是什么?()

    A.55

    B.56

    C.65

    D.66


    参考答案:A

  • 第4题:

    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


    参考答案: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