GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 30 of 928    Print  
What is finally method in Exceptions

  
Total Answers and Comments: 3 Last Update: May 14, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 13, 2005 08:36:43   #1  
M.Manikumar        

RE: What is finally method in Exceptions
In java after the execution of try or catch block the statements following the catch block will not be executed and the control goes to another method or the program may be terminated. So in that instance if there is a piece of code that has to be executed after the try or catch block this piece of code has to placed in finally block.
 
Is this answer useful? Yes | No
September 29, 2005 09:11:50   #2  
pradeep kumar rout        

RE: What is finally method in Exceptions

finally method in Exceptions ????

finally not a method in exception


 
Is this answer useful? Yes | No
May 14, 2009 10:08:53   #3  
rajesh.manem Member Since: July 2007   Contribution: 2    

RE: What is finally method in Exceptions
Finally method is executed whether the exception is raised or not and normally used to close the resource that are opened in the before.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape