English

The ______ method will accept a character using stream class. - Computer Applications

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?
Chapter 1.06: Input in Java - EXERCISES [Page 65]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.06 Input in Java
EXERCISES | Q I. 3. | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×