Exceptions

This lesson introduces the concept of exceptions in Java.

We'll cover the following...

Question # 1

What is an exception?

An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions. The term exception is shorthand for the phrase "exceptional event." Using exceptions helps us:

  • Separate out error handling code from rest of the code

  • Errors can ...