Exception Handling

An exception (short for "exceptional event") is an unexpected event that occurs as a program is running.

Examples of exceptions:

Exceptions that occur are said to be thrown

Exception handling allows your programs to gracefully recover from exceptions

The Java mechanism for handling exceptions is the try-catch block