在Java中,为什么 “终于” 块存在:finally块最后执行的原因是什么?
try {
...
} catch(...) {
...
} finally {
// instructions lastly executed when the "try" block is quit
}
,而不是一个 “第一” 块?
try {
...
} firstly {
// instructions firstly executed when the "try" block is quit
} catch(...) {
...
}
什么是'first'块? – tkausl
请详细说明你的“第一个”块 –
“第一个”块实际上不存在,我的问题是关于它不存在而不是“finally”块的原因。 – Codoscope