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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A next()
  • B nextLine()
  • C Next()
  • D nextString()
Correct Answer

Explanation

nextLine()

Reason — nextLine() reads the input till the end of line so it can read a full sentence including spaces.

Share This Question

Challenge a friend or share with your study group.