Name the method which returns integer as -1 when the end of file is encountered.

a) int read()
b) int ReadByte()
c) void readbyte()
d) none of the mentioned

1 thought on “Name the method which returns integer as -1 when the end of file is encountered.”

  1. b
    Explanation: Returns an integer representation of the next available byte of input. Returns –1 when the end of the file is encountered.

Leave a Comment