Summary |
Exceptions are useful-- they let us handle errors in an easy way. We just try to do something and can catch errors if they occur. Of course, not all exceptions should be handled in this way. Errors that cause null pointer exceptions or array out of bounds exceptions, for example, are real problems with the program, and programs should be designed not to generate these types errors.
There are a number of other programs that demonstrate the use of exceptions. You are encouraged to browse them.
Summary |