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

How to read and write image from a file ?

993


What is numeric function?

948


What is a arraylist in java?

993


Explain different ways of creating a thread. Which one would you prefer and why?

983


What is the difference between a synchronized method and a synchronized block?

1014


What is a method signature java?

988


What are the two ways in which thread can be created?

998


What is memory leak and how does java handle it?

933


What does void * mean?

953


What is the difference between ArrayList and Vector? which one is better in Java

1078


How do you compare values in java?

974


Should database connections be singleton?

926


What is application system?

888


What is matcher in java?

931


Which data type is class in java?

951