What is an exception? How do you handle it?
Utilisateur anonyme
An exception is an event that occurs when the normal flow of the program is interrupted. It contains information about the error, state of the program, and other option values There are two types of exceptions Checked Exception: It can be handled using try and catch block or using throws keyword in the method's signature. uncheck exception may not be able to handle -- there could be runtime error or unexpected stack over flow (which can be handle but sometimes it doesn't make sense)