题目内容

下列程序的执行,说法正确的是()。public class Test{static void procedure(){try{int c[]={1};c[42]=99;}catch(ArrayIndexOutOfBoundsException e){System.out.println("数组超越界限异常:"+e);}}public static void main(String args[]){try{procedure();int a=args.length;int b=42/a;System.out.println("b="+b);}catch(ArithmeticException e){System.out.println("除0异常:"+e);}}}

A. 程序只输出第7行的异常信息
B. 程序只输出第17行的异常信息
C. 程序将不输出异常信息
D. 程序将输出第7行和第17行的异常信息

查看答案
更多问题

对程序语言而言,一般有编译错误、()和()三类错误。

java语言认为那些可预料和不可预料的出错称为( )。

Throwable类有两个子类:( )类和()类。

《建设工程合同示范文本》由合同协议书、()和专用合同条款以及11个合同附件。

答案查题题库