多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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.
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题