Why do we need a finally block in try catch block while
handling exceptions
Answer Posted / vijay kumar inumella
finally block will be executed irrespective of whether
the exception occured or not.
finally block is generally used to close the database
connections and to dispose the session objects etc.
Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What is access specifier in c#?
How many types of constructors are there?
What is a console file?
Can you explain template pattern?
what is the scope of anonymous type ?
What are the return types in c#?
What is difference between arraylist and list in c#?
How is a loop recorder monitored?
Is xml tags are case sensitive?
What is static void main in c#?
What is the difference between finalize() and dispose()?
What is data quality assurance?
Why do we use delegates in c#?
What is a protected class c#?
Expalin the way you implement inheritance by using VB.NET/C#?