MCQ
Which of the following classes provides a method to read a password?
  • A
    Scanner
  • Console
  • C
    Secret
  • D
    Hidden

Answer

Correct option: B.
Console
Console

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