What is an Exception? Explain by giving an example
When the type of exception thrown matches the type of exception that can be handled, the exception is passed on to the handler so as to catch the exception. The three types of exceptions are: checked exceptions,