Results 1 to 2 of 2
Thread: Will finally get executed...
- 08-10-2009, 06:27 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 5
- Rep Power
- 0
Will finally get executed...
try
{
//Do something that throws an Exception
}
catch(Exception ex)
{
throw AnApplicationException();
}
finally
{
try { close a connection } catch {};
}
Will the finally block be executed if the catch block throws another application exception. We have a similiar situation in one of our applications - wherein I do not think the connection is being closed by finally. :rolleyes:
Thankx in advance....
- 08-10-2009, 07:12 PM #2
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 13
Similar Threads
-
Finally done :D
By Shadaw in forum Java AppletsReplies: 3Last Post: 12-24-2008, 04:45 AM -
How to use Finally
By Java Tip in forum java.langReplies: 0Last Post: 04-17-2008, 07:40 PM -
Try---finally
By javarishi in forum New To JavaReplies: 14Last Post: 04-09-2008, 10:34 AM
Bookmarks