填空题

public Throwable(String messaSe)构造函数包含getMessage()方法,用来返回带参数构造函数创建异常时的参数内容,对无参数构造函数而言,用它返回的是 【15】 。

【参考答案】

空值
<上一题 目录 下一题>
热门 试题

填空题
压缩文件输出流类都是 【12】 抽象类的子类。
填空题
请阅读下列程序代码,然后将程序的执行结果补充完整。程序代码:public class throwsExcepfion{static void Proc(int se1)throws ArithmeticException,ArraylndexOutOfBoundsException {System.out.println( in Situation +se1);if(se1==0){System.out.println( no Exception caught );return;}else if(se1==1){int iArray[]=new int[4];iArray [1]=3;}}public static void main(String args[])[try{Proc(0);Proc(1);} catch(ArraylndexOutOfBoundsException e) {System.out.println( Catch +e);}finally{System.out.println( in Proc finally );}}}执行结果:In Situation()no ExcepbOn cauSht【14】 in Proc findly
相关试题
  • 下列不属于Swing中构件的是( )。
  • 下列对于线性链表的描述中正确的是( )。
  • 使容器中各个构件呈网格布局,平均占据容器...
  • 下列方法中可以用来创建一个新线程的是( )。
  • 在Java语言中,不允许使用指针体现出的Java...