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

In finally block writing the code of clean up code i.e
means release the database connection,close the file.The
finally block complusary be executed block when ever
exception raised or not all ways execute this finally block

Note:
The following write statement write in try or catch block
it will not execute
System.error(0);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is an integer an object?

950


What are the major drawbacks of external iteration?

1048


What is array class in java?

1049


What are synchronized methods and synchronized statements in java programming?

1001


Difference between abstract and concrete class ?

1155


What is the full name of java?

1104


List some features of the abstract class.

1049


Why we do exception handling in java and how many types of exceptions are there?

1103


When to use runnable interface vs thread class in java?

959


Do I need java for windows 10?

1028


What do bitwise operators do?

988


What is currentthread()?

977


What does a za z0 9 mean?

1085


Does constructor return any value?

1013


How do you sort arrays in java?

914