Multiple Choice
What is returned by the read method when a FileInputStream has reached the end of the file?
A) -1
B) -2
C) '\n'
D) 0
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: If we read a byte and the
Q30: In Java, you use a(n) _ object
Q31: Assume we have a RandomAccessFile object, file,
Q32: The values of the byte type range
Q33: Every object is assigned a serial number
Q35: Which code moves the file pointer to
Q36: What type is returned from a call
Q37: Caesar cipher uses a shift of each
Q38: Streams access sequences of _.<br>A) characters<br>B) files<br>C)
Q39: In Java, the simplest mechanism for reading