Advertisements
Advertisements
Question
The ______ method will accept a character using stream class.
Options
in.read()
(char)(in.read())
in.readline()
character.read()
MCQ
Fill in the Blanks
Solution
The (char)(in.read()) method will accept a character using stream class.
Explanation:
The in.read() method reads a single byte from the input stream, which can then be cast to char and used to receive a character.
shaalaa.com
Is there an error in this question or solution?