多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

11. public static void main(String[] args) {  12. Integer i = uew Integer(1) + new Integer(2);  13. switch(i) {  14. case 3: System.out.println(”three”); break;  15. default: System.out.println(”other”); break;  16. }  17. }  What is the result?() 

  • A、 three
  • B、 other
  • C、 An exception is thrown at runtime.
  • D、 Compilation fails because of an error on line 12.
  • E、 Compilation fails because of an error on line 13.
  • F、 Compilation fails because of an error on line 15.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题