Question OOP-EXC-0007
EasyWhat does the 'throws' clause in a Java method declaration do?
- A.
Ends the method
- B.
Declares the checked exceptions the method may pass to its caller
- C.
Show answer and explanation
Answer: B
void read() throws IOException warns callers that they must handle IOException.