Java - Console


OS - Console (Local terminal) in Java.

Class c = System.console().getClass();

There is a unique console associated with the virtual machine which is returned by the static method System.console(). The value returned by getClass() is the Class corresponding to

java/io/Console gives an access to the console to read user input such as password.

Powered by ComboStrap