If I have the following code
try {
//some stuff here
catch (Exception e) {
throw new CustomException();
} finally {
finalize();
}
where CustomException
is a checked exception,
Will the finally
block be called in the event of an Exception
?
EDIT: Perhaps "finalize()" was a poor choice of wording. I DID NOT mean the finalize() method of Object. I just meant that there was cleanup code that needed done. Apologies for that.