Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Exceptions in Java are objects. All exceptions are derived from the java.lang. Throwable class. Figure 6.9 shows a partial hierarchy of classes derived from the Throwable class. The two main subclasses Exception and Error constitute the main categories of throwables, the term used to refer to both exceptions and errors. Figure 6.9 also shows that not all exception classes are found in the same package.