[单选题]

阅读下列代码 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"); break; } } } 其运行结果是

A.Java

B.Language

C.Test

D.编译出错

参考答案与解析:

相关试题

阅读下列代码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 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[]){ System.out.println(~(0xa5)&0xaA.0xa5B.10C.0x50D.0xaa

  • 查看答案
  • 阅读下列代码:public class Test2005{public stat

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

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

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

  • 查看答案
  • 阅读下列代码public class Test2005 { public sta

    [单选题]阅读下列代码 public class Test2005 { public static void main(String args[]){ System.out.pfintln(~(0xa5)&0xaa); } } 其运行结果是( )。A.0xa5B.10C.0x50D.0xaa

  • 查看答案
  • ( 20 )阅读下列代码public class Test2005{public

    [单选题]( 20 )阅读下列代码public class Test2005{public static void main(String args[]){System.out.println(~(0xa5)&0xaa) ;}}其运行结果是A. ) 0xa5B. ) 10C. ) 0x50D. ) 0xaa

  • 查看答案
  • ( 21 )阅读下列代码public class Test2005{public

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

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