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
How is the syntax written to inherit from a class in C#?Give an example ?
What is the default value of decimal in c#?
What is event sourcing in c#?
What is dll in vb.net?
What is a function c#?
Explain About Global.asax
Can destructors have access modifiers?
What are the Types of assemblies that can be created in dotnet
List some of the common data providers for ado.net framework?
Why do we need to override in c#?
Is multilevel inheritance possible in c#?
What's the difference between system.string and system.text.stringbuilder classes?
What are the differences between static, public and void in c#?
What is the difference between “constant” and “readonly” variables in c#?
Why do we still see so much non-oo code written in c# today?