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

Java认证考试

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

1. public class Exception Test {  2. class TestException extends Exception {}  3. public void runTest() throws TestException {}  4. public void test() /* Point X */ {  5. runTest();  6. }  7. }  At Point X on line 4, which code is necessary to make the code compile?()  

  • A、 No code is necessary.
  • B、 throws Exception
  • C、 catch ( Exception e )
  • D、 throws RuntimeException
  • E、 catch ( TestException e)
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题