public static String getString(){
try {
//return "a" + 1/0;
return "a";
} catch (Exception e) {
System.out.println(1);
return "b";
// TODO: handle exception
}finally{
System.out.println(2);
return "c";
}
}
请问输出多少?答案也许会让你大吃一惊哦
public static String getString(){
try {
//return "a" + 1/0;
return "a";
} catch (Exception e) {
System.out.println(1);
return "b";
// TODO: handle exception
}finally{
System.out.println(2);
return "c";
}
}
请问输出多少?答案也许会让你大吃一惊哦