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
Is the following code legal?
Why abstract class can not be instantiated?
Value Type and Reference Type Data type in C#?
Define constructor in c#.
What is datatable and dataset in c#?
Why do we use hashtable in c#?
What are extender provider components?
How do you access a constant field declared in a class?
Describe the difference between inline and code behind - which is best?
What is string literal in c#?
What is the purpose of reserved word using in c#?
What is func c#?
Explain the security with aop?
Which programming language is best for desktop applications?
What is null in database?