单项选择题
A.在Java中删除目录是从虚拟机直接删除不走回收站,文件将无法恢复。
B.File类的delete()方法不允许对还有子文件的目录直接删除。
C.delete()方法可以删除一个指定的文件。
D.在删除目录时,应先删除这个目录再删除该目录下的所有文件。
你可能喜欢
A.FileInputStream流
B.FileReader流
C.FileOutputStream流
D.FileWriter流
A.intread()方法一次能够读入一个字节。
B.intread()方法的返回值是所读入字节的数量。
C.intread(byte[]b)方法一次能够读入多个字节。
D.intread(byte[]b)方法的返回值是所读入字节的数量。
A.File
B.FileOutput
C.OutputStream
D.InputStream
A.ByteArrayInputStream
B.FileInputStream
C.BufferedInputStream
D.PipedInputStream
A.try{OutputStreamout=newFileOutputStream(“hello.txt”);}Catch(IOExceptione){}
B.try{OutputStreamout=newFileOutputStream(“hello.txt”,true);}Catch(IOExceptione){}
C.try{OutputStreamout=newFileOutputStream(“hello.txt”,false);}Catch(IOExceptione){}
D.try{OutputStreamout=newOutputStream(“hello.txt”,true);}Catch(IOExceptione){}
赞题库-搜题找答案
(已有500万+用户使用)
无需下载 立即使用