下面程序的输出结果是什么?
public class J_Test{
public static void mb_method() throws Exception{
try{ throw new Exception(); }
finally{ System.out.print("1"); }
}
public static void main(String args[]){
try{ mb_method(); }
catch(Exception e){ System.out.print("2"); }
System.out.print("3");
}
}
A 1
B 23
C 123
D 上面程序含有编译错误
public class J_Test{
public static void mb_method() throws Exception{
try{ throw new Exception(); }
finally{ System.out.print("1"); }
}
public static void main(String args[]){
try{ mb_method(); }
catch(Exception e){ System.out.print("2"); }
System.out.print("3");
}
}
A 1
B 23
C 123
D 上面程序含有编译错误