black

SCJP程序员认证考试

登录

单项选择题

11. class Converter { 
12. public static void main(String[] args) { 
13. Integer i = args[0]; 
14. int j = 12; 
15. System.out.println(”It is “ + (j==i) + “that j==i.”); 
16. } 
17. } 
What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?() 

A. It is true that j==i.
B. It is false that j==i.
C. An exception is thrown at runtime.
D. Compilation fails because of an error in line 13.

相关考题

单项选择题 public class TestString 1 {  public static void main(String[] args) {  String str = “420”;  str += 42;  System.out.print(str);  }  }  What is the output?()

单项选择题 1. public class Boxer1 {  2. Integer i;  3. int x;  4. public Boxer1(int y) {  5. x=i+y;  6. System.out.println(x);  7. }  8. public static void main(String[] args) {  9. new Boxer1(new Integer(4));  10. }  11. }  What is the result?()

单项选择题 10. public class ClassA {  11. public void count(int i) {  12. count(++i);  13. }  14. }  And:  20. ClassA a = new ClassA();  21. a.count(3);  Which exception or error should be thrown by the virtual machine?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064