What does the read() method of FileInputStream return when the end of file is reached?

Last Updated :
Discuss
Comments

What does the read() method of FileInputStream return when the end of file is reached?

'0'

0

-1

null

Share your thoughts in the comments