What is the purpose of the finally clause of a try-catch-finally statement

The finally clause is used to provide the capability to execute code no matter whether ornot an exception isthrown or caught.

Showing Answers 1 - 3 of 3 Answers

The purpose is that,when an exception is caught during program execution,code written in finally clause will be executed ,irrespective of what type of error has occurred.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions