Java - Console

> Procedural Languages > Java > Java - IO (Input/Output) - (File System|File|Console)

Table of Contents

1 - About

OS - Console (Text 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.

lang/java/io/console.txt · Last modified: 2018/09/16 10:57 by gerardnico