McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Bachelor of Computer Applications (BCA)
→
Java Programming
→
Which of these is used to read a string ...
Q.
Which of these is used to read a string from the input stream?
A.
get()
B.
getLine()
C.
read()
D.
readLine()
Answer» C. read()
2.2k
0
Do you find this helpful?
6
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
Given the following declarations String s1=new String("Hello") ; String s2=new String("there"); String s3=new String(); Which of the following are legal operations?
Which of these is used to read a string from the input stream?
Which of these method of class String is used to extract a single character from a String object?
Which of these method of class String is used to obtain length of String object?
Which exception is thrown by the read ( ) method of input stream class?
Which exception is thrown by the read () method of Input Stream class?
Which of these class is not related to input and output stream in terms of functioning?
Which of this method of class String is used to obtain a length of String object?
Given the code String s = new String("abc"); Which of the following call is not valid?
Consider the following code snippet String river = new String(“Columbia”); System.out.println(river.length()); What is printed?