Showing posts with label Exception Handling. Show all posts
Showing posts with label Exception Handling. 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

Wednesday, 19 October 2011

How are exceptions handled in PL/SQL?

PL/SQL exception handling is a mechanism for dealing with run-time errors encountered during procedure execution. Use of this mechanism enables execution to continue if the error is not severe enough to cause procedure termination.

The exception handler must be defined within a subprogram specification. Errors cause the program to raise an exception with a transfer of control to the exception-handler block. After the