Multiple Choice
What is returned by the read method when a FileInputStream has reached the end of the file?
A) 0
B) -1
C) -2
D) '\n'
Correct Answer:
Verified
Related Questions
Q30: A Caesar cipher uses a shift of
Q31: Which class has a write method that
Q32: What is the highest value for a
Q33: In _ file access, the file is
Q34: In Java, the byte type is a(n)
Q36: Caesar cipher uses a shift of each
Q37: Why does FileInputStream override the read method
Q38: A Caesar cipher uses a shift of
Q39: You cannot read a _ file with
Q40: The read method of the FileInputStream class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents