( FileInputStream )下面关于 FileInputStream 类型说法正确的是:
( FileInputStream )下面关于 FileInputStream 类型说法正确的是:
实现字符流的写操作类是(),实现字符流的读操作类是() A: Writer、FileReader B: Writer、FileInputStream C: FileInputStream、Writer D: FileInputStream、FileOutputStream
实现字符流的写操作类是(),实现字符流的读操作类是() A: Writer、FileReader B: Writer、FileInputStream C: FileInputStream、Writer D: FileInputStream、FileOutputStream
下列哪个选项定义了带有缓存的文件字节输入流 A: BufferedInputStream bis = new BufferedInputStream(new FileInputStream(...)); B: BufferedOutputStream bos = new BufferedOutputStream(new FileInputStream(...)); C: FileInputStream fis = new FileInputStream(new BufferedInputStream(...)); D: FileOutputStream fis = new FileOutputStream(new BufferedOutputStream(...));
下列哪个选项定义了带有缓存的文件字节输入流 A: BufferedInputStream bis = new BufferedInputStream(new FileInputStream(...)); B: BufferedOutputStream bos = new BufferedOutputStream(new FileInputStream(...)); C: FileInputStream fis = new FileInputStream(new BufferedInputStream(...)); D: FileOutputStream fis = new FileOutputStream(new BufferedOutputStream(...));
FileInputStream类是InputStream类的子类。
FileInputStream类是InputStream类的子类。
中国大学MOOC: (读写文件)下列语句执行时,若文件”customer.dat”不存在,则会产生的异常是________。FileInputStream fis = new FileInputStream(“customer.dat”);
中国大学MOOC: (读写文件)下列语句执行时,若文件”customer.dat”不存在,则会产生的异常是________。FileInputStream fis = new FileInputStream(“customer.dat”);
【单选题】阅读下段代码 import java.io.*; public class Example{ public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("file.txt"); FileOutputStream fos = n
【单选题】阅读下段代码 import java.io.*; public class Example{ public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("file.txt"); FileOutputStream fos = n
要读一个较大的文件,下列创建对象的方法中哪个是最合适的?( ) A: new FileInputStream(“myfile.dat”); B: new InputStreamReader(new FileInputStream(“myfile.dat”)); C: new BufferedReader(new InputStreamReader(new FileInputStream(“myfile.dat”); D: new RandomAccessFile raf=new RandomAccessFile(new File(“myfile.dat”,”rw”));
要读一个较大的文件,下列创建对象的方法中哪个是最合适的?( ) A: new FileInputStream(“myfile.dat”); B: new InputStreamReader(new FileInputStream(“myfile.dat”)); C: new BufferedReader(new InputStreamReader(new FileInputStream(“myfile.dat”); D: new RandomAccessFile raf=new RandomAccessFile(new File(“myfile.dat”,”rw”));
以下选项中,哪个是FileInputStream的父类( )
以下选项中,哪个是FileInputStream的父类( )
序列化用到哪种Stream() A: FileInputStream B: ObjectInpuStream C: ByteArrayInputStream
序列化用到哪种Stream() A: FileInputStream B: ObjectInpuStream C: ByteArrayInputStream
FileInputStream按字节读取文件,FileReader按字符读取文件
FileInputStream按字节读取文件,FileReader按字符读取文件