这段代码返回的结果是60,不是finally在return之前执行的吗
为什么结果还这样?
public class Test {
public static void main(String[] args) {
System.out.println(getInt());
}
public static int getInt() {
int a = 23;
try {
System.out.println(a / 0);
a = 45;
} catch (Exception e) {
a = 60;
return a;
} finally {
a = 70;
}
return a;
}
}