9
Handling Exceptions
•The parameter must be of a type that is compatible with the thrown exception’s type
–this means don’t have a catch (ArithmeticException ae) if the exception you expect to occur is a (FileNotFoundException fnfe) because it won’t catch it.
•After an exception is handled, the program will leave the catch block and continue execution at the point following it.