Showing posts with label finally. Show all posts
Showing posts with label finally. Show all posts

Saturday, 5 November 2011

Sun Certified Java Programmer (SCJP)-8

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