Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
+1 vote
in Programming Languages & Algorithms by

1 Answer

+1 vote
selected by (user.guest)
Best answer

Ans. The purpose of exception handling mechanism is to provide a means to detect and report an "exception circumstance", so that right action can be taken. The mechanism suggests incorporation of a separate error handling code that performs the following tasks.

1. Find the problem (Hit the exception).

2. Inform that an error has occurred (Throw the exception).

3. Receive the error information (Catch the exception).

4. Take corrective actions (Handle the exception).

Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.