[单选题]

阅读下列代码 public class Test{ String s="One World One Dream"; public static void main(String args[]){ System. out. println(s); } } 其运行结果是

A.args

B.One World One Dream

C.s

D.编译时出错

参考答案与解析:

相关试题

阅读下面代码public class Test { String s="One

[单选题]阅读下面代码 public class Test { String s="One World One Dream"; public static void main(String[] args) { System.out.println(s); } } 其运行的结果是A.argsB.World One DreamC.sD.编译时出错

  • 查看答案
  • 阅读下列代码: public class Test{public static

    [单选题]阅读下列代码: public class Test{ public static void main(String args[])[ System. out.println(89>>1 ); } }A.44B.45C.88D.90

  • 查看答案
  • ( 22 )阅读下列代码public class Test{public sta

    [单选题]( 22 )阅读下列代码public class Test{public static void main(String args[]){System.out.println(89>>1) ;}}其运行结果是A. ) 44B. ) 45C. ) 88D. ) 90

  • 查看答案
  • 阅读下列代码public class Test{public static vo

    [单选题]阅读下列代码 public class Test{ public static void main(String args[]){ System. out. println((2<0)? 10:8); } } 其运行结果是A.2B.0C.10D.8

  • 查看答案
  • 阅读下列代码public class Test 2005{public stat

    [单选题]阅读下列代码 public class Test 2005{ public static void main(String args[]){ System.out.println((3>2)?4:5); } } 其运行结果是A.2B.3C.4D.5

  • 查看答案
  • 阅读下列代码public class Test 2005{public stat

    [单选题]阅读下列代码 public class Test 2005{ public static void main(String args[]){ Strings="Test"; switch(s){ case "Java":System.out.print("Java"); break; case "Language":System.out.print("Language"); break; case "Test":System.out.ptint("Test"); br

  • 查看答案
  • 阅读下列代码public class Test{public static vo

    [单选题]阅读下列代码 public class Test{ public static void main(String args[]){ System.out.println(89>>1); } } 其运行结果是A.44B.45C.88D.90

  • 查看答案
  • 阅读下列代码public class Test 2005{public stat

    [单选题]阅读下列代码 public class Test 2005{ public static void main(String args[]){ System.out.println(~(0xa5)&0xaA.0xa5B.10C.0x50D.0xaa

  • 查看答案
  • 阅读下列代码public class Test 2005{public stat

    [单选题]阅读下列代码 public class Test 2005{ public static void main(String args[]){ System.out.println((3>2)?4:5); } } 其运行结果是A.2B.3C.4D.5

  • 查看答案
  • 阅读下列代码public class Test 2005{public stat

    [单选题]阅读下列代码 public class Test 2005{ public static void main(String args[]){ Strings="Test"; switch(s){ case "Java":System.out.print("Java"); break; case "Language":System.out.print("Language"); break; case "Test":System.out.ptint("Test"); br

  • 查看答案
  • 阅读下列代码public class Test{ String s="One W