Object Oriented Programming20785 marksExceptional Handling
What is exception? Why exception handling is better to use? Explain exception handling with try.... catch by using suitable example.
What is exception? Why exception handling is better to use? Explain exception handling with try.... catch by using suitable example. [5]
An exception is an unusual or abnormal event (error condition) that occurs during the execution of a program and disrupts the normal flow of the program's instructions. Examples include division by zero, file not found, invalid memory access, and array index out of bounds. Exceptions provide a wa...