Which method among the following returns the integer if no character is available?
A. int peek()
B. int read()
C. string ReadLine()
D. None of the mentioned
Answer:A
Which method among the following returns the integer if no character is available?
A. int peek() B. int read() C. string ReadLine() D. None of the mentioned
Explanation: Obtains the next character from the input stream, but does not remove that character. Returns –1 if no character is available.