4
Handling Exceptions
•In Java, exceptions are said to have been “thrown.”  In other languages, they may be “raised.”
•It is the programmers responsibility to write code that anticipates the occurrence of an exception and keeps the program from crashing.
•The code that does this is said to “handle” the exception and is called an exception handler. 
•If the programmer doesn’t  write code to “handle the exception”, the  default exception handler does.  It prints an error message and crashes the program which isn’t very satisfactory.
•
Example from text:  BadArray.java