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

What is the use of jtable?

1166


Which eclipse is best for java?

1056


What is the static method?

1126


What happens when you add a double value to a string?

1060


Is array size fixed in java?

1028


What is object data type?

1050


What is the java reflection api? Why it’s so important to have?

1028


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

1049


What is an interface in java?

1090


Is 0 a prime number?

1058


What are the advantages of encapsulation in java?

1051


How do you convert string to int in java?

1145


Is int primitive data type?

992


What is the difference between a scrollbar and a scrollpane?

1110


How are observer and observable used in java programming?

1080