填空题

Java语言的异常处理机制利用【 】语句作为异常处理的统一接口。

【参考答案】

finally
<上一题 目录 下一题>
热门 试题

填空题
请阅读下列程序代码,然后将程序的执行结果补充完整。程序代码:public class throwsException{static void Proc(int sel)throws ArithmeticException,ArrayIndexOutOfBoundsException{System.out.println( In Situation +sel);if(sel==0){System.out.println( no Exception caught );return;}else if(sel==1){int iArray[]=new int[4];iArray[1]=3;}}public static void main(String args[]){try{Proc(0);Proc(1)}catch(ArrayIndexOutOfBoundsException e){System.out.println( Catch +e);}finally{System.out.println( in Proc finally );}}}执行结果:In、Situation 0no Exception caught【 】in Proc finally
填空题
通过【 】运算符实现对成员变量的访问和方法调用。
相关试题
  • 一个程序中单独的、并发的线程对同一个对象...
  • 下列是Java程序,演示的是变量类型的强制转...
  • 接口可以看作是仅容纳上【 】、常量,而又...
  • 在自定义Swing构件的时候,首先要确定使用...