*Console(class)(1.6): This class is introduce in java 1.6 version. This class is used to read the contents from the keyboard. Console is a available in “io” package.We can not object of console class directly. It can be created by using console method available in System class.
import java.io.*; class Read1{ public static void main(String[] args) throws IOException{ Console c = System.console(); String name = c.readLine(“Enter your name:”); System.out.println(name); Char[] pwd = c.readPassword(“Enter your password”); System.out.println(pwd); }}
On this page of the site you can watch the video online Java Console class with a duration of hours minute second in good quality, which was uploaded by the user Java code&Decode 07 February 2020, share the link with friends and acquaintances, this video has already been watched 290 times on youtube and it was liked by 8 viewers. Enjoy your viewing!