Exception handling is necessary to guide the user, even when the person gives a wrong input.

 

Use exception handling to preserve the program from not crashing!

 

In Java there are two types of Exceptions:

  1. Built-in Exceptions
  2. User-Defined Exceptions