单选题public static void main(String[]args){ Integer i=new Integer(1)+new Integer(2); switch(i){ case3:System.out.println("three");break; default:System.out.println("other");break; } } Whatistheresult?()A threeB otherC Anexceptionisthrownatruntime.D Compilat

题目
单选题
public static void main(String[]args){ Integer i=new Integer(1)+new Integer(2); switch(i){ case3:System.out.println("three");break; default:System.out.println("other");break; } } Whatistheresult?()
A

three

B

other

C

Anexceptionisthrownatruntime.

D

Compilationfailsbecauseofanerroronline12.

E

Compilationfailsbecauseofanerroronline13.

F

Compilationfailsbecauseofanerroronline15.


相似考题
参考答案和解析
正确答案: D
解析: 暂无解析