Why do we need a finally block in try catch block while
handling exceptions

Answer Posted / santosh

The code which should execute at any cost even when an exception occurs that code should be written in finally block
ex-closing a form when exception occurs.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can I create with c#?

677


How do I simulate optional parameters to com calls?

738


Is there any sample c# code for simple threading?

726


What are console applications used for?

697


What does console mean c#?

692


What is .dbml file?

690


How to override a function in c#?

758


Why do we need constructors?

678


how background thread access to ui control?

791


What is a .aspx file?

639


Why is main static in c#?

722


Explain how to implement delegates in c#.net

707


What is the adv of using System.Text.StringBuilder over System.String?

741


What is float in unity?

687


Can we have static indexer in c#?

684