A.100
B.200
C.300
D.400
第1题
阅读下面程序 pubic class Cycle{ public static void main(String args[]){ System. out. println(args[0]); 在命令行中输入java Cycle one two,该程序输出结果是
A.Cycle
B.one
C.two
D.上述A、B、C、均不对
第2题
阅读下面程序 pubic class Cycle{ public static void main(String args[]){ System. out. println(args[0]); 在命令行中输入java Cycle one two,该程序输出结果是
A.Cycle
B.one
C.two
D.上述A、B、C、均不对
第3题
阅读下面程序 public class ConcatTest{ public static void main(String[] args) { String strl = "abc"; String str2 = "ABC"; String str3 = str1.concat(str2); System.out.println(str3); } } 程序的运行结果是:
A.abe
B.ABC
C.abcABC
D.ABCabc
第4题
阅读下面程序 public class Test2 { public static void main(String args[]){ int a=1O, b=4, c=20, d=6; System.out.println(a++*b+c*--D) ; } } 程序运行的结果是
A.144
B.160
C.140
D.164
第5题
阅读下面程序 public class Test3 { public static void main(String args[]){ int x=3, y=4, z=5; String s="xyz"; System.out.primln(s+x+y+z); } } 程序运行的结果是
A.xyzl2
B.xyz345
C.xyzxyz
D.12xyz
第6题
阅读下面程序 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 6 6
B.5 5 6
C.6 7 7
D.6 6 6
第7题
请阅读下面程序 public class ExampleStringBuffer{ public static void main(String []args){ StringBuffer sb=new StringBuffer("test"); System.out.println("buffer="+sB) ; System.out.println("length="+sb.length());} } 程序运行结果中在"length="后输出的值
A.10
B.4
C.20
D.30
第8题
阅读下面程序 public class MyVal { public static void main(String[]args) { MyVal m=new MyVal(); m.amethod(); } public void amethod() { boolean b[]=new Boolean[5]; } } 程序编译或运行的结果是
A.1
B.null
C.""
D.编译不通过
第9题
阅读下面程序 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 6 6
B.5 5 6
C.6 7 7
D.6 6 6
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!