Q. Which class in Java is used to take input from the user?
β
Correct Answer: (A)
Scanner
Explanation: The Scanner class is used to get user input, and it is found in the java. util package.