Click an option to check whether your answer is correct.
nextLine()
Reason — nextLine() reads the input till the end of line so it can read a full sentence including spaces.
Explore more questions from similar topics.
Share this MCQ with your friends or study group.