给出下列【代码】注释标注的代码的输出结果。________ public class E { public static void main(String args[]){ int [] a ={1,2,3,4,5,6}; System.out.println(a.length+"hello"+a[5]); //【代码】 } }
举一反三
- 给出下列代码的输出结果:public class E{public static void main(String args[]){System.out.println((int)'a');}}
- 下列ABCD注释标注的哪行代码有错public class Demo { public static void main(String args[]) { System.out.println("Java"); system.out.println("hello"); System.out.println("你好"); } } A: public class Demo B: public static void main(String args[]) C: system.out.println("ok"); D: System.out.println("您好");
- 下列代码的执行结果是()public class Beirun{public static void main(String args[]){System.out.println(5/2);}}
- 下列代码的执行结果是 Public class Test { Public static void main(String args[]) { System.out.println(5/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______ 。