- Java.io - Writer
- Java.io - StringWriter
- Java.io - StringReader
- Java.io - StringBufferInputStream
- Java.io - StreamTokenizer
- Java.io - SerializablePermission
- Java.io - SequenceInputStream
- Java.io - Reader
- Java.io - RandomAccessFile
- Java.io - PushbackReader
- Java.io - PushbackInputStream
- Java.io - PrintWriter
- Java.io - PrintStream
- Java.io - PipedWriter
- Java.io - PipedReader
- Java.io - PipedOutputStream
- Java.io - PipedInputStream
- Java.io - OutputStreamWriter
- Java.io - OutputStream
- Java.io - ObjectStreamField
- Java.io - ObjectStreamClass
- io - ObjectOutputStream.PutField
- Java.io - ObjectOutputStream
- Java.io - ObjectInputStream.GetField
- Java.io - ObjectInputStream
- Java.io - LineNumberReader
- Java.io - LineNumberInputStream
- Java.io - InputStreamReader
- Java.io - InputStream
- Java.io - FilterWriter
- Java.io - FilterReader
- Java.io - FilterOutputStream
- Java.io - FilterInputStream
- Java.io - FileWriter
- Java.io - FileReader
- Java.io - FilePermission
- Java.io - FileOutputStream
- Java.io - FileInputStream
- Java.io - FileDescriptor
- Java.io - File
- Java.io - DataOutputStream
- Java.io - DataInputStream
- Java.io - Console
- Java.io - CharArrayWriter
- Java.io - CharArrayReader
- Java.io - ByteArrayOutputStream
- Java.io - ByteArrayInputStream
- Java.io - BufferedWriter
- Java.io - BufferedReader
- Java.io - BufferedOutputStream
- Java.io - BufferedInputStream
- Java.io - Home
Java.io package extras
Java.io package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.io.Console Class
Introduction
The Java.io.Console class provides methods to access the character-based console device, if any, associated with the current Java virtual machine.
Class declaration
Following is the declaration for Java.io.Console class −
pubpc final class Console extends Object implements Flushable
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method flushes the console and forces any buffered output to be written immediately. |
2 | This method writes a formatted string to this console s output stream using the specified format string and arguments. |
3 | This method is used to write a formatted string to this console s output stream using the specified format string and arguments. |
4 | This method retrieves the unique Reader object associated with this console. |
5 | This method reads a single pne of text from the console. |
6 | This method provides a formatted prompt, then reads a single pne of text from the console. |
7 | This method reads a password or passphrase from the console with echoing disabled. |
8 | This method provides a formatted prompt, then reads a password or passphrase from the console with echoing disabled. |
9 | This method retrieves the unique PrintWriter object associated with this console. |
Methods inherited
This class inherits methods from the following classes −
Java.io.Object