题目内容

阅读下列代码import java.io.*;public class Example {public static void main(String[] args) throws Exception { FileInputStream in = new FileInputStream("itcast.txt");int b = 0; while (true) {b = in.______;if (b == -1) {break;}System.out.println(b);}in.close() }}下列选项中,填写在程序空白处正确的是()

A. read()
B. close()
C. skip()
D. available()

查看答案
更多问题

下列选项中,不属于FileReader类的方法的是( )

A. read()
B. close ()
C. readLine()
D. toString()

当对象进行序列化时,必须保证该对象实现Serializable接口,否则程序会出现【】异常。

java.io.FileOutputStream是【】的子类,它是操作文件的字节输出流。

DataInputStream 和【】是两个与平台无关的数据操作流。

答案查题题库