注意:此页面搜索的是所有试题
题目内容
(石家庄铁道大学面向对象程序设计)
下面程序在onMethod方法运行正常的情况下将显示是( )。
Public void test(){
try {onMethod();System.out.println("情况1");}
catch(ArrayIndexOutofBoundsException e){ System.out.println("情况2 ");}
catch(Exception e){ System.out.println("情况3 ");}
finally{ System.out.println("finally");}
}
Public void test(){
try {onMethod();System.out.println("情况1");}
catch(ArrayIndexOutofBoundsException e){ System.out.println("情况2 ");}
catch(Exception e){ System.out.println("情况3 ");}
finally{ System.out.println("finally");}
}
参考答案
![](/lib/img/vx.png)
![](/lib/img/EnteWeChat.png)