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
What is a derived class in c#?
Who introduced c#?
Is dictionary a collection?
What is inumerable?
Why do we need nullable types in c#?
What does using system mean in c#?
What is the object class in c#?
What are custom exceptions? Why do we need them?
What is meaning of type safety in c#?
What is dictionary class in c#?
What are synchronous and asynchronous operations?
How do I unload an application domain?
Why can't we use a static class instead of singleton?
What are extensions in c#?
What is the difference between selection and projection?