Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Methods invoked from within a finally block can throw an exception. Failing to catch and handle such exceptions results in the abrupt termination of the entire try block, masking suppressing any exception thrown in the try block. Additionally, the transfer of control associated with the exception prevents execution of any expressions or statement that occurs after the point in the finally block from which the exception is thrown. Consequently, programs must appropriately handle checked exceptions thrown from within a finally block.

...