try-catch-finally执行顺序

try-catch-finally执行顺序

1、不管有没有出现异常,finally块中的代码都会执行;

2、当try和catch中有return时,finally仍然会执行;

3、finally是在return后面的表达式运算后执行的。