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.
javase/9/docs/api/java/io/Console.html gives an access to the console to read user input such as password.