May 2009
Intermediate to advanced
61 pages
1h 41m
English
There are two different ways in which computer programs respond to, or handle, exceptions. Many procedural languages use unstructured exception handling, in which execution jumps to a specified line in your program whenever an exception it thrown.
However, the preferred method for object-oriented languages is to use structured exception handling. Structured exception handling uses language constructs to isolate blocks of code. It allows you to implement one or more exception handlers that execute if and only if an exception is thrown, and a finally handler that always executes, regardless of whether an exception is thrown. Exception handlers can be configured to catch specific exceptions. Exception handlers ...
Read now
Unlock full access