在oneMethod()方法运行正常的情况下,程序段将输出什么?
public void test(){ try{ oneMethod(); System.out.println("1"); }catch (SQLException e){ System.out.println("2"); }catch (Exception e){ System.out.println(3); }catch (IOException e){ System.out.println("4"); }finally{ System.out.println("finally"); } }
A.condition 1 B.condition 2 finally C.condition 3 finally D.编译错误 答案是D
大咪
慕仰6620973
相关分类