单项选择题

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);

相关试题
  • 以下对继承的描述错误的是()。
  • 以下代码运行输出是()。
  • 以下关于块的描述不正确的有()。
  • 如果一个类不想让别的类进行访问,需要什么...
  • 在多态中,将子类对象看做父类对象的做法称...