Which class in Java is used to take input from the user?

11. Which class in Java is used to take input from the user?

  1. Scanner
  2. Input
  3. Applier
  4. None of these

Answer: A) Scanner

Explanation:

The Scanner class is used to get user input, and it is found in the java. util package.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.