Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA PROGRAMMING

Exception Type

All exception types are subclass of the built-in class Throwable. Thus, throwable is at the top of the exception class hierarchy. Immediately below Throwable  are two subclasses that partition exception into two distinct branches. One branch is headed by Exception, called RuntimeException.

Exception of this type are automatically defined for the programs that you write and include things such as division by zero and invalid array indexing.

The other branch is topped by Error, which is defines exceptions that are not expected to be caught under normal circumstances by your program.


Previous

Next