1 Answers
When an exception occurs, the program will be terminated. There are some situations where an exception occurs, but we don’t want the program to simply ignore the exception and terminate the program. We have to identify the exceptions and take corrective actions and execute the program. This method of identifying the exceptions and taking corrective actions and execute the program without terminating the program is called exception handling.