•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