Declare a method that throws a checked exception
Declare a method that throws a checked exception
Answer
void loadEvents(String file) throws IOException { // may throw IOException }
A checked exception that is not caught here must be declared in the signature, transferring the obligation to callers.