22
Checked and Unchecked Exceptions
•The code in this method is capable of throwing checked exceptions.
•The keyword throws is written at the end of the method header, followed by a list of the types of exceptions that the method can throw.
–public void displayFile(String name)
    throws IOException,FileNotFoundException
Throws statement in header is only necessary if exception handler not present.