Cambell is right. the whole POINT of a finally block is that is it code that HAS to run, regardless of what else happens in the try/catch block. You are effectively asking "How do i not run the code I said I have to run"?
To that i'd reply "which is it? do you need to run it, or do you need to not run it?"
You should only put code that has to be run every time in the finally block. If you don't need to always run it, DON'T put it in there.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
It would be other way around called as 'Self Contradiction' Moreover, it would be a mere waste of all - including the lines in your java source code, compilers efforts to get the code compiled, etc., ...