欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

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)

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题