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 static class in c#?
Define satellite Assembly in .NET?
the c# keyword .int. Maps to which .net type?
Do unused Namespaces in c# affect run-time performance?
What are floating point numbers?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is ispostback c#?
Explain the 3 types of properties in c# with an example?
What are namespaces, and how they are used?
Which is faster dictionary or hashtable?
How to rotate an Image in C#?
What happens during the process of boxing?
What is an ienumerable in c#?
What is difference between method overriding and method overloading?
Can class inherit from struct c#?