KnowledgeBoat Logo
|

Computer Applications

Which of the following package will you import to use Scanner class?

  1. java_util;
  2. Scanner.class;
  3. java.util;
  4. java.scanner.util;

Input in Java

4 Likes

Answer

java.util;

Reason — The Scanner class is available in the system package java.util. One must import java.util package to avail the facilities of the Scanner class.

Answered By

2 Likes


Related Questions