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

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

Temkut
Views: 721 | Community Opinion: 1

Tags..  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Reducal Said..

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






What do you think? Add your opinion/answer
*Name
*your opinion/answer: