Exception Handling
 
Introduction
 
Errors are a normal part of programming.
 
Some of these errors are flaws in a program's basic design or implementation--these are called bugs.
 
Other types of errors are not really bugs; rather, they are the result of situations like low memory or invalid filenames.
 
The way we handle the second type of error determines whether they become bugs.
 
Java's exception-handling mechanism lets us handle errors without forcing us to spend most of our energy worrying about them.