An exception is an event that disrupts the normal flow of program execution. In Java, exceptions are objects — every exception is an instance of a class that inherits from java.lang.Throwable.
The Exception Class Hierarchy
An exception is an event that disrupts the normal flow of program execution. In Java, exceptions are objects — every exception is an instance of a class that inherits from java.lang.Throwable.