ICSE Class 10 Computer Applications Question 6 of 30

Solved Sample Paper 3 — Question 6

Back to all questions
6
Question

Question 1(vi)

Which package would you import for the Scanner class?

  1. java.util.*;
  2. java.awt.*;
  3. java.io.*;
  4. java.lang.*;
Answer

java.util.*;

Reason — Scanner class is a part of java.util package.