Exception handling
Exceptions are Java objects; exception classes are derived from java.lang.Throwable.
An exception is thrown to denote an abnormal occurrence like accessing an array index that exceeds the size of the array. Exceptions can be checked or unchecked. Subclasses of RuntimeException and Error are called unchecked exceptions. All other classes, which inherit from Exception, are checked exceptions. Any method that might throw a checked exception must either