代码System.out.println(066)的输出结果是( )。
A.12
B.36
C.54
D.66
第1题:
( 12 )代码 System.out.println(066) 的输出结果是 【 12 】 。
第2题:
6.下面代码片断的输出结果是什么? int w = 25, x = 3; boolean y = w < x; boolean z = w >= w * 2 - x * 9; boolean cc = 'b' > 'a'; System.out.println("w<x=" + y); System.out.println("z=" + z); System.out.println("cc=" + cc); 输出结果为:
第3题:
3.对于如下代码,下列哪个叙述是正确的? public class E{ public static void main(String[] args){ String strOne="bird"; String strTwo=strOne; strOne="fly"; System.out.println(strTwo); } }
A.程序编译出现错误。
B.程序标注的【代码】的输出结果是bird。
C.程序标注的【代码】的输出结果是fly。
D.程序标注的【代码】的输出结果是null。
第4题:
对于下列代码,下列哪个叙述是正确的? class A { public int i=0; A(int m) { i = 1; } } public class B extends A { B(int m) { i = 2; } public static void main(String args[]){ B b = new B(100); System.out.println(b.i); //【代码】 } }
A.程序提示编译错误。
B.编译无错误,【代码】输出结果是0。
C.编译无错误,【代码】输出结果是1。
D.编译无错误,【代码】输出结果是2。
第5题:
下面代码片段,当x=2是的运行结果是() switch (x ){ case 1: System.out.println(1); case 2: case 3: System.out.println(3); case 4: System.out.println(4); }
A.输出结果为3
B.没有输出任何结果
C.输出结果是3和4
D.3和4