A.1,2,3 B.Compilation fails because of an error in line 12. C.Compilation fails because of an error in line 13. D.Compilation fails because of an error in line 14. E.A ClassCastException is thrown at runtime.
A.Mark the method with the keyword public. B.Mark the method with the keyword protected. C.Mark the method with the keyword private. D.Mark the method with the keyword package. E.Do not mark the method with any accessibility modifiers.
5
A. false B. default C. _object D. a-class
A.Line 92 will not execute. B.The connection will not be retrieved in line 85. C.The resource connection will not be closed on line 88. D.The enclosing method will throw an exception to its caller.
A. a2.m2(); B. ((Beta)a2).m2(); C. ((Alpha)a2).m2(); D. ((Gamma)a2).m2();
A. 創(chuàng)建菜單項(xiàng) B. 創(chuàng)建按鈕 C. 創(chuàng)建菜單欄 D. 創(chuàng)建彈出式菜單
A. Compilation will fail. B. Compilation will succeed and the program will print “0” C. Compilation will succeed and the program will print “1” D. Compilation will succeed and the program will print “2”
A.ItemListener B.ActionListener C.ButtonListener D.WindowListener
A. Exception B. A Exception C. A Exception B D. A B Exception E. Compilation fails because of an error in line 14. F. Compilation fails because of an error in line 19.