Exception handling
Exception handling is a way to manage errors that occur during a
program's execution
THE WORKING OF JAVA EXCEPTION HANDLING
MECHANISM BY THE FOLLOWING BELOW POINTS.
• Get the exception (Detects problem)
• Throw exception (Inform that an error has occurred)
• Catch the exception (Receive error information)
• Handle exception (Take appropriate and corrective
actions)