• 2021-04-14
    int A = 55;

    char B = 'E';
    System.out.println(A + B);
  • 124

    内容

    • 0

      以下代码的输出结果是________________。int i=2;char c=’a’;char d=(char)(c+i);System.out.println(d);

    • 1

      下列选项中,不能输出100个整数的是______。 A: A) for(int i=0;i<100;i++) B: System.out println(i) : C: B) int i=0: D: do E: System out.println(i) ; F: i++: G: while(i<100) ; H: C) int i=0: I: while(i<100) J: System.out.println(i) ; K: i++: L: D) int i=0; M: while(i<100) N: i++: O: if(i<100) continue; P: System.out.println(i) ;

    • 2

      println 语句执行了多少次? for (int i = 0; i < 10;i++) for (int j = 0;j < i;j++) System .out.println(i * j)

    • 3

      中国大学MOOC: 下列代码中构造方法的返回类型是()public class Village { Village () { System .out .println(“hiding in Village”) ; } public static void main( String args [ ]) { Village c =new Village ( ) ;}class Village { public static void main( String args [ ]) { Village c =new Village ( ) ; } Village () { System .out .println(“hiding in Village”) ; } }

    • 4

      运行char c = 'A'; int i = 26; System.out.println(c + i); 代码的结果是