Site hosted by Angelfire.com: Build your free website today!
 

What's an Exception

An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions.

By using exceptions to manage errors, Java programs have the following advantages over traditional error management techniques:

  • Separating Error Handling Code from Regular Code

  • Propagating Errors Up the Call Stack

  • Grouping Error Types and Error Differentiation