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

What are different types of classloaders?

1013


What does singleton class mean?

952


Can you explain inner class.

1065


What are the important features of Java 11 release?

1099


Which is bigger float or double?

962


What is lastindexof in java?

1080


What does this () mean in java?

973


What is the difference between array and array list in java?

1211


What are jee technologies?

994


What is the properties class?

1081


What does index mean in java?

981


What is string [] java?

931


How many types of threads are there in java?

1044


How do I start learning java?

1051


Write a function to find out longest palindrome in a given string?

1035