tags:

views:

50

answers:

2

The readPassword() method of the Console class has echoing disabled.

What's echo?

+5  A: 

That means you can't see the characters while you are typing in the console. As you would normally do.

This way you can ask for a password on the commandline but nobody can read by eavesdropping on your computer screen.

This is the equivalent of a password textfield in the GUI world where you see stars * instead of the actual characters.

jitter
+3  A: 

It means it doesn't show what the user types, like when you type a password at Linux login.

klez