KnowledgeBoat Logo
|

Computer Applications

For which of the following purposes, the Scanner class is used?

  1. To display a value
  2. To find square root of a number
  3. To input a value
  4. To find maximum of two numbers

Input in Java

22 Likes

Answer

To input a value

Reason — The Scanner class allows the user to input values of different data types.

Answered By

10 Likes


Related Questions