单项选择题
字节输入流用什么类()
A.FileInputStream
B.FileOutputStream
C.StringBuffer
D.FileReader
点击查看答案
相关考题
-
单项选择题
java中,File类中使用()方法来判断一个文件是否存在?
A.createNewFile
B.renameTo
C.delete
D.exists -
单项选择题
使用JavaIO流实现对文本文件的读写过程中,需要处理下列()异常
A.ClassNotFoundException
B.IOException
C.SQLException
D.RemoteException -
单项选择题
想要实现使用缓冲流创建输出流,并实现向文件中追加数据的功能的方式是()
A.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt"),true);
B.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt",true);
C.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt",false));
D.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt"),false);