下列程序输出的结果是() 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. 二者没有区别
Java语言提供的主要输入/输出流所在的包是()
A. java.io
B. java.util
C. java.math
D. java.io1
下列创建RandomAccessFile对象的方法中正确的是()
A. new RandomAccessFile (“test.txt”,”rw”)
B. new RandomAccessFile (new DataInputStream ())
C. new RandomAccessFile (new File (“test.txt”))
D. new RandomAccessFile (“test.txt”)