Single Choice
Easy
QThe Scanner class method used to accept words with space:
ID: #23945
ICSE Computer Application - Class X - 2023 PYQ
79 views
Question Info
#23945Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2023 PYQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
nextLine()
Reason — nextLine() reads the input till the end of line so it can read a full sentence including spaces.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic