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

Can properties be private in c#?

568


Do loops in c#?

573


What is monitor in C#?

678


Overloaded constructor will call default constructor internally?

665


What does get set mean in c#?

582






What is parse method in c#?

532


What does it mean to override a method?

539


How many types of interface are there in c#?

582


What is meant by unicode characters?

646


Are structs value types c#?

548


What are generics in c#.net?

690


What are constructors in c#?

622


What is the difference between abstract and virtual?

545


What is a protected class in c#?

587


How to declare a property in a class?

652