Multiple choice technology programming languages

Which of the following are true about the readPassword() method of the Console class? choose two

  1. Its return type is String

  2. It reads the password from the console

  3. It has echoing disabled

  4. It takes a single argument

  5. None of them

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

Console.readPassword() reads password input from the console with echoing disabled (characters don't appear on screen). It returns char[] not String for security (can be cleared from memory).