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 purpose of the finally clause of a try-catch-finally statement in java programming?



What is the purpose of the finally clause of a try-catch-finally statement in java programming?..

Answer / Shiv Mohan Singh

The 'finally' block in Java is executed whether an exception occurs or not. It is used to release resources that were acquired by the try block, such as closing a file or releasing network connections.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a data structure java?

1 Answers  


What are null interfaces? Give some examples?

2 Answers  


What is the need of transient variables in Java ?

1 Answers   MCN Solutions,


What is nullpointerexception in java?

1 Answers  


What is primitive array?

1 Answers  


What happens when main () method is declared as private?

1 Answers   Tech Mahindra,


Howmany number of objects we can store in an ArrayList. Is there any limit?

7 Answers   TCS,


Explain java coding standards for constants?

1 Answers  


Is there any case when finally will not be executed?

1 Answers  


What do you mean by light weight and heavy weight components?

1 Answers  


Linked List reverese program

2 Answers   Bally Technologies,


What is the role of the java.rmi.naming class?

1 Answers  


Categories