云计算新课2-以下代码的输出结果是( )
short a = 3;
int b = a++;
switch (b + a) {
case 6:
System.out.println(6);
break;
case 7:
System.out.println(7);
break;
case 8:
System.out.println(8);
break;
default:
System.out.println(100);
break;
}
A6
B7
C8
D100
相关试题
-
云计算新课2-以下代码的输出结果是( ) short a = 3; int b = a++; switch (b + a) { case 6: System.out.pri
-
云计算新课2-9.java中以下代码片段,输出结果为 for (int i = 0; i < 2; i++) { System.out.println(i); for (int
-
云计算新课2-阅读以下代码,分析代码,打印的结果是( ) int a = 0; int b = 5; while(a++< b){ System.out.println(a
-
下列代码的执行结果是: int length = Hello.length(); System.out.println(length);
-
云计算新课2-代码System.out.println(-5 / 0);的运行结果为( )