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