MCQOPTIONS
Saved Bookmarks
| 1. |
At Point X on line 5, which code is necessary to make the code compile? public class ExceptionTest { class TestException extends Exception {} public void runTest() throws TestException {} public void test() /* Point X */ { runTest(); } } |
| A. | No code is necessary. |
| B. | Throws Exception |
| C. | Catch ( Exception e ) |
| D. | Throws RuntimeException |
| Answer» C. Catch ( Exception e ) | |