What value does read() return when it has reached the end of a file?
Java Interview Questions and Answers (part 2)
(Continued from previous question...)
242. What value does read() return when it has reached the end of a file?
The read() method returns -1 when it has reached the end of a file.
(Continued on next question...)
Other Interview Questions