在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("conditio
欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web
在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.condition 1
B.condition 2
C.condition 3
D.condition 1 finally
正确答案D
×
提示:小程序已经收录此题,请在小程序查看名师解析。翰林刷小程序提供搜题,刷题,助你轻松通过考试