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 does args mean in c#?

897


Are tuples immutable c#?

912


What does static mean in c sharp?

1053


What sort algorithm does c# use?

889


Can multiple inheritance implemented in c# ?

899


How can I get around scope problems in a try/catch?

912


How to parse a date time string?

997


What is private variable?

885


what is the default access for a class

1091


What is collection of classes in c#?

1010


Explain the use of Mutex in C#?

1011


Differentiate between object pooling and connection pooling in c#?

983


Define Abstract Class in C#

962


What does an indexer do?

883


Are c# destructors the same as c++ destructors?

1111