Multiple choice

Rajiv wants to create a password box. He must use the _______ property so that the data is displayed in the form of symbols

  1. set Char (char)

  2. set Echo Char (char)

  3. set Char Echo (char)

  4. set Char At (char)

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

The setEchoChar(char) method is used to set the echo character for text fields, which displays input as symbols (like asterisks) for password fields. This method masks user input for security purposes.