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
How long will it take to learn c sharp?
What is ienumerator c#?
Why are dynamic link library used over static one?
What are the Configuration files in .net?
What is the use of generics in c#?
What is the data type for bit in c#?
What is the difference between yield and return?
What is ienumerable <> in c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records
What is c-sharp (c#)?
Differentiate between static class and singleton instance?
What is the difference between struct and class c#?
How does it work?
What is the signature of a method?
What is the difference between list and ilist in c#?