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 / sivadasan

Finally block always execute, its not consider whether an
exception is raised or not. Once try block is executed
means finally will be executed.

Finally block is necessary, often sufficient to execute
some important things its nothing but connection close
stmt..

system.exit(0); given in try catch block means finally
block will not be executed.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why Interface used?

989


Explain the differences between static and dynamic variables?

1151


How an object is serialized in java?

989


How do you allocate memory to object?

1001


Can an abstract class be a final class?

998


In case of inheritance what is the execution order of constructor and destructor?

1134


Why do we need hashset in java?

1043


how to deploy tomcatserver to weblogic server? write d following steps?

1968


Which is dependent variable?

901


Explain the difference between abstract class and interface in java?

985


What is finalize method?

1123


What is the use of singleton class?

970


What is method overloading in java ?

1091


Under what conditions is an object’s finalize() method invoked by the garbage collector?

1045


How do you declare an array in java?

1062