Which of the following can be inserted on line 2 to make this code compile? (Choose all that apply)
1: public void ohNo() throws IOException {
2: // INSERT CODE HERE
3: }
A, C, D, E.
A method that declares an exception isn't required to throw one so A is correct.
Runtime exceptions can be thrown in any method, making options C and E correct.
D matches the exception type declared and so is also correct.
B is incorrect because a broader exception is not allowed.