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...

What is the basically use of finally while we know it
is always executed but why?

Answer Posted / reshma

Using finally one can close the resources such as file
handler or a database connection. It ia good to maintain
the internal state of an object.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unicode in java?

919


What is hash table in java?

991


What is passing value java?

1036


How many threads can I run java?

1096


What are basic keywords?

1033


How can we create objects if we make the constructor private ?

984


What is intern method in java?

1060


Does apple use java?

933


What is meant by collection in java?

1047


How garbage collection is done in java?

1033


Can a class be defined inside an interface?

1015


How do you create a null object?

1070


How can an exception be thrown manually by a programmer?

976


What are three advantages of using functions?

995


What is threaded programming and when is it used? : Java thread

1052