如果我有以下代码
try {
//some stuff here
catch (Exception e) {
throw new CustomException();
} finally {
finalize();
}
CustomException
已检查异常在哪里,
finally
如果出现 ,会调用该块Exception
吗?
编辑:也许“finalize()”是一个糟糕的措辞选择。我不是指 Object 的 finalize() 方法。我只是说需要完成一些清理代码。对此表示歉意。