Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are PE(Portable Executable)?

956


What is the adv of using System.Text.StringBuilder over System.String?

914


What is the advantage of dependency injection?

931


What is difference between float and integer?

945


Can we inherit abstract class in c#?

869


What are the types of serialization?

907


What exactly happens when we debug and build the program?

2532


What is a .aspx file?

818


Can we inherit two classes in c#?

897


Explain inheritance in c#?

895


Which .gang of four. Design pattern is shown below?

862


Which string method is used for concatenation of two strings in c#?

949


Where static variables are stored?

880


Differentiate between response.expires and response.expiresabsolute?

928


What is escape sequence in c#?

954