Exception Handling
 
Types of Exceptions
 
The methods of the Java API and the language itself also throw exceptions.
 
These exceptions can be divided into two classes: Exception and Error.
 
Both the Exception and Error classes are derived from Throwable.
Exception and its subclasses are used to indicate conditions that may be recoverable. Error and its subclasses indicate conditions that are generally not recoverable and that should cause your applet to terminate.
 
The various packages included in the Java Development Kit throw different kinds of Exception and Error exceptions, as described in the following sections.