除数为零是()异常。
A. ClassCastException
B. ArithmeticException
C. RuntimeException
D. ArrayIndexOutBoundException
用来手工抛弃异常的关键字是()。
A. throws
B. throw
C. try
D. catch
下列程序输出的结果是() class Test{ public static void main(String arg[]){ try{int i=1/0; }catch(ArithmeticException e){ System.out.println(“ArithmeticException”); } catch(Exception e){ System.out.println(“exception”); }finally{ System.out.println(“finally”); } }}
ArithmeticException exception
B. exception
C. exception finally
D. ArithmeticException finally
字节流和字符流的区别是()。
A. 每次读入的字节数不同
B. 前者带有缓冲,后者没有
C. 前者以字节读写,后者以字符读写
D. 二者没有区别