97免费在线观看视频,亚洲综合自拍网,黄色毛片免费观看,热久久综合网,免费看日产一区二区三区 狠狠操av,久久久涩涩涩,在线精品免费视频,人人插天天干,久久91精品国产91久久

單項(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)搜題