Q:
在oneMethod()方法运行正常的情况下,程序段将输出什么?
public void test()
{ try{ oneMethod();
System.out.println("condition 1"); }catch (ArrayIndexOutOfBoundsException e){ System.out.println("condition 2"); }
catch(Exception e){ System.out.println("condition 3"); }finally{ System.out.println("finally"); } }
A .condition1
B .condition2
C .condition3
D .condition1finally
相关问题