1.class TestSuper { 22.TestSuper(int i) { } 3. } 4.class TestSub extends TestSuper{ } 5.class TestAll { 6.public static void main (String [] args) { 7.new TestSub(); 8.} 9.} Which is true?()  

A .  Compilation fails. B .  The code runs without exception. C .  An exception is thrown at line 7. D .  An exception is thrown at line 2.

时间:2022-10-19 01:49:43 所属题库:SCJP程序员认证考试题库

相似题目