单选题:For InputStream.read(), the read() with no parameters, which sta
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
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