最终块是否总是在 Java 中执行?
2022-08-31 01:22:52
考虑到这段代码,我能绝对确定块总是执行的吗?不管是什么?finally
something()
try {
something();
return success;
}
catch (Exception e) {
return failure;
}
finally {
System.out.println("I don't know if this will get printed out");
}