为什么运行结果是10,而不是20呢
不应该执行最后一个return吗
public class Test {
public static void main(String[] args) {
System.out.println(aa());
}
public static int aa() {
int a = 0;
try{
a = a/0;
}catch (Exception e){
a = a+10;
return a;
}finally {
a = a+10;
}
return a;
}
}