Data streams

  • Eclipse: Oxygen
  • Java: 1.8

Data streams

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.

  1. System.out: Output stream is used to write a file.
  2. System.in: input stream is used to read a file.
  3. System.err: error stream is used to handle or show the error.

Contributed by: Poonam Tomar


Full stack Java Developer

   Buy me a coffee!

 

PayTM QR (INDIA)

Download file

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu