无码高清视频|成人自拍视频|欧美成人午夜无码A片秀色直播|草美女视频网站|美女被操网站在线观看

單項(xiàng)選擇題

11. class Cup { } 
12. class PoisonCup extends Cup { } 
21. public void takeCup(Cup c) { 
22. if(c instanceof PoisonCup) { 
23. System.out.println(”Inconceivable!”); 
24. } else if(c instanceof Cup) { 
25. System.out.println(”Dizzying intellect!”); 
26. } else { 
27. System.exit(0); 
28. } 
29. } 
And the execution of the statements: 
Cup cup = new PoisonCup();
takeCup(cup); 
What is the output?() 

A. Inconceivable!
B. Dizzying intellect!
C. The code runs with no output.
D. An exception is thrown at runtime.
E. Compilation fails because of an error in line 22.

微信掃碼免費(fèi)搜題