try catch구문에서 finally는 항상 실행되나요??
조회수 3321회
소스코드
try {
something();
return success;
}
catch (Exception e) {
return failure;
}
finally {
System.out.println("i don't know if this will get printed out.");
}
이런 코드에서 try랑 catch에서 return을 하는데도 finally가 실행되나요???
댓글 입력