Switch to Dark Mode

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

Last Updated : Apr 4, 2025
Discuss
Comments

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

A

'0'

B

0

C

-1

D

null

Share your thoughts in the comments