• 2022-06-08
    阅读下面程序 public class Increment{ public static void main( String args[] ) { int c; c=5; System.out.println(c); System.out.println(c++); System.out.println(c); } } 程序运行结果是______。
    A: 5
    B: 6
    C: 6
    D: 5
    E: 5
    F: 6
    G: 6
    H: 7
    I: 7
    J: 6
    K: 6
    L: 6
  • B

    举一反三

    内容

    • 0

      请阅读下面的程序 public class Example03 { public static void main(String args) { int x = 3; if (x > 5) { System.out.println("a"); } else { System.out.println("b"); } } } 程序的运行结果是()

    • 1

      以下代码的调试结果为?1: public class Q102: {3: public static void main(String[] args)4: {5: int i = 10;6: int j = 10;7: boolean b = false;8:9: if( b = i == j)10: System.out.println("True");11: else12: System.out.println("False");13: }14: }

    • 2

      public class E4_1{ public static void main(String args[]) { int a = 1; int b = 2; int c = 3; a += 5; b *= 4; c += a * b; c %= 6; System.out.println("a = " + a); //代码1 System.out.println("b = " + b); //代码2 System.out.println("c = " + c); //代码3 }}运行结果,代码1______ ,代码2______ ,代码3______ 。

    • 3

      以下程序的运行结果是:() public class Increment{ public static void main(String args[]) { int a; a = 6; System.out.print(a); System.out.print(a++); System.out.print(a); } }

    • 4

      下列程序的运行结果是()。 public class Test public static void main ( String [ ] args ) int count = 0 for( int i = 1 i < 5 i = 2) for( int j = 1 j< = 10 j = 3) count System .out .print (count ) _