新建一个流对象,下面哪个选项的代码是错误的?()
新建一个流对象,下面哪个选项的代码是错误的?()
A、new BufferedWriter(new FileWriter(“a.txt”));
B、new BufferedReader(new FileInputStream(“a.dat”));
C、new GZIPOutputStream(new FileOutputStream(“a.zip”));
D、new ObjectInputStream(new FileInputStream(“a.dat”));
正确答案:B