- Eclipse: Oxygen
- Java: 1.8
The stream is a sequence of data. It could be a sequence of input, output or error stream. As the name suggest input and output. It is used for the purpose of input and output respectively.
In Java streams are automatically created for us. All these streams are attached with console.
- System.out: Output stream is used to write a file.
- System.in: input stream is used to read a file.
- System.err: error stream is used to handle or show the error.
Contributed by: Poonam Tomar