站点图标 度崩网-几度崩溃

关于流的创建,错误的是()

  • A、new BufferedReader (new FileInputStream(“a.txt”));
  • B、new BufferedWriter(new FileWriter(“a.txt”));
  • C、new GZIPOutputStream(new FileOutputStream(“a.txt”));
  • D、new ObjectInputStream(new FileInputStream(“a.txt”));

参考答案

答案:A

分析:

BufferedReader 构造方法的参数只能是 Reader 类