2078 11

Object Oriented Programming20785 marksException handling definition and purpose

What is exception handling? Explain how to handle an exception with appropriate example.

What is exception handling? Explain how to handle an exception with appropriate example. [5]

Exception handling is the mechanism by which a program signals a fault at the place where it is discovered and deals with it at the place that has enough context to decide what to do. An exception is an unexpected condition that arises while the program runs, such as a file that will not open, me...

Up nextWrite a program that writes the contents of file 1 into file 2.