若有以下程序: class Demo{ public static void main(String []s){ int a = 5, b = 0; try{a = a/b;} catch(Exception e){System.out.print(“异常”)} catch(AirthmeticException e){ System.out.print(“算术异常”); } Catch(IndexOutOfBoundsException e){ System.out.print(“越界异常”); } }} 则程序运行结果为( ) A: 显示:异常 B: 显示:算术异常 C: 显示:越界异常 D: 编译错误
若有以下程序: class Demo{ public static void main(String []s){ int a = 5, b = 0; try{a = a/b;} catch(Exception e){System.out.print(“异常”)} catch(AirthmeticException e){ System.out.print(“算术异常”); } Catch(IndexOutOfBoundsException e){ System.out.print(“越界异常”); } }} 则程序运行结果为( ) A: 显示:异常 B: 显示:算术异常 C: 显示:越界异常 D: 编译错误
1