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 are PE(Portable Executable)?
What is the adv of using System.Text.StringBuilder over System.String?
What is the advantage of dependency injection?
What is difference between float and integer?
Can we inherit abstract class in c#?
What are the types of serialization?
What exactly happens when we debug and build the program?
What is a .aspx file?
Can we inherit two classes in c#?
Explain inheritance in c#?
Which .gang of four. Design pattern is shown below?
Which string method is used for concatenation of two strings in c#?
Where static variables are stored?
Differentiate between response.expires and response.expiresabsolute?
What is escape sequence in c#?