가능한 중복 :
Is there such case when in try\finally block the finally won't be executed?`try` 블록 도움말 자바
나는 자바에 비교적 새로운 해요 난 그냥 정확히 약 try-catch
블록 (3 분 전 들었어요).
try-catch
블록에서 finally
부분 (있는 경우) 이 아닌이 실행됩니까?
try {
if (choice) {
//...
} else {
//...
}
} finally {
doesThisEverNOTrun();
}
가능한 중복 [드디어 마지막으로 실행되지 않습니다 차단 시도의 \ 이러한 경우가 있습니까?] (http://stackoverflow.com/questions/3484353/is-there-such-case-when-in 시러 다니구-마지막 블록 - 더 - 최종적 습관 - - 실행) 및 http://stackoverflow.com/questions/6228528/ 및 http://stackoverflow.com/questions/464098/ –
[예] (HTTP : //thedailywtf.com/Articles/My-Tales.aspx). ;) –