Monday, April 30, 2007
Explain 'try','catch' and 'finally' blocks?
Subscribe to:
Post Comments (Atom)
World of tricky Core Java Q&A(Java SE),Java EE and Open source technologies like Struts,Hibernate,Spring,Velocity etc
Disclaimer
Interview Questions On Java,Java EE Copyright © 2012
1 comments:
Regarding the finally block, it is not exclusive to catching exceptions...it is run whether the try block completed successfully or generated an exception caught in the catch block. It should contain any code that needs to run regardless of whether the try block succeeds or fails.
Post a Comment