在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