Java - Console

Java Conceptuel Diagram

About

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.





Discover More
Simple Class
Java - Class (Definition)

A java/lang/Classclass provides the blueprint for objects; you create an object from a class. All classes are derived from the Object class. A class declaration names the class and encloses the class...



Share this page:
Follow us:
Task Runner