新建一个流对象,下面哪个选项的代码是错误的?()


新建一个流对象,下面哪个选项的代码是错误的?()

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


Tag:选项 对象 代码 时间:2024-03-21 23:09:00