Computer Applications
The …………… method will accept a character using stream class.
- in.read( )
- (char)(in.read( ))
- in.readline( )
- character.read( )
Input in Java
20 Likes
Answer
(char)(in.read( ))
Reason — (char)(in.read( )) method will accept a character using stream class.
Answered By
12 Likes
Related Questions
Which of the following is the right way to use a comment in Java program?
- /* comment */
- /* comment
- // comment //
- */ comment */
Given: int p=55/0;
Name the type of error in the given statement:- Syntax
- Logical
- Runtime
- Executional
Which of the following method will accept a string by using scanner object?
- next( )
- next.read( )
- next.String( )
- next.char( )
Which of the following is a method of Java Scanner class?
- nextline( )
- nextLine( )
- Nextline( )
- NextLine( )