public static void main(String[] args) {
System.out.println(getNum()); //30
}
public static int getNum(){
int a = 10;
try {
a = 20;
System.out.println(1/0);
return a;
} catch (Exception e) {
System.out.println("123");
a = 30;
return a; //关键点在于这里
}finally{
a = 40;
}
}
求代码输出是多少?
|
|