MCQ
What does the constructor of Scanner class accept as an argument?
  • A
    System. Out
  • System.in
  • C
    System. Read
  • D
    System. Scan

Answer

Correct option: B.
System.in
System.in

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free