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 / muffy.jad@gmail.com

The finally block is used to ensure resources are recovered
regardless of any problems that may occur.

finally is important because it allows the programmer to
guarantee the release of memory regardless of what happens
in the try block

finally is necessary when you need to set something other
than memory back to its original state.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is ++ operator is thread safe in java?

892


What are thread priorities and importance of thread priorities in java?

1061


Can we declare the main method of our class as private?

948


What is the biggest integer?

998


Explain the available thread states in a high-level?

910


Why string is not thread safe?

961


What value is a variable of the string type automatically initialized?

1050


What is the purpose of stub and skeleton?

955


is it possible to instantiate the math class?

967


Which number is denoted by leading 0x or 0x in java?

991


What are instance variables?

1035


Can a source file contain more than one class declaration?

912


How do you get length in java?

972


Describe string intern() methodology

1015


Explain about version control?

983