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 steps are taken when the OS shifts from one-thread execution to another?

1368


What is a ?

1203


How can you add and remove nodes in jtree?

1045


How do you remove duplicates in java?

1025


Can we extend a class with private constructor?

1011


Is array passed by reference in java?

1032


What do you mean by aggregation?

1323


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

986


What is the abstract class?

1030


Can singleton class be inherited in java?

1009


Which is fastest collection in java?

1086


What is thread life cycle in java?

1070


Can you explain the meaning of aggregation and composition

1011


Which types of exceptions are caught at compile time?

1037


What access modifiers can be used for variables?

1151