Java Interviews
Java Interview
The read() method returns -1 when it has reached the end of a file.