-->
当前位置:首页 > 题库

单选题:For InputStream.read(), the read() with no parameters, which sta

Luz5年前 (2021-05-10)题库1373
For InputStream.read(), the read() with no parameters, which statement below is correct? @[A](2)

A. read() returns int, because it has to return EOF to indicate the end of the file
B. read() returns byte, because it reads a byte from the stream
C. read() returns char, because it reads a char from the stream
D. read() returns int, as the number of bytes it just read



A.read() returns int, because it has to return EOF to indicate the end of the file
B.read() returns byte, because it reads a byte from the stream
C.read() returns char, because it reads a char from the stream
D.read() returns int, as the number of bytes it just read


答案:A