Tuesday, March 10, 2009

What value does read() return when it has reached the end of a

Question :What value does read() return when it has reached the end of a
file? (CoreJava)

Answer :The read() method returns -1 when it has reached the end of a file.

No comments: