import java.util.Scanner;
//用于验证当finally和return都存在时是先执行finally还是return
public class Bb {
public static void main(String[] args) {
int number = aA();
System.out.println(number);
}
public static int aA(){
int i = 1;
try {
Scanner scanner = new Scanner(System.in);
} finally {
i*=100;
}
return ++i;
}
}
结果显而易见,是先执行的finally后执行的return