Results 1 to 3 of 3
- 08-30-2012, 03:00 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 2
- Rep Power
- 0
- 08-30-2012, 03:10 PM #2
Re: how can one avoid the execution of code in the finally section of a try catch blo
A sledgehammer applied at just the right moment ought to do the trick.
Why do you think you need to know this? What's the context?
Also, what's a?final block
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 08-30-2012, 04:51 PM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: how can one avoid the execution of code in the finally section of a try catch blo
You don't.
That's the whole point of the finally block...it is guaranteed to execute (barring system exit I think, and things generally outisde the JVMs control).Please do not ask for code as refusal often offends.
Similar Threads
-
Try-catch-(finally?) on reading/writing to files
By Torchi12 in forum New To JavaReplies: 8Last Post: 11-29-2011, 01:42 PM -
try...catch block
By javaplus in forum New To JavaReplies: 3Last Post: 11-06-2007, 07:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks