DEV Community

Gayathri.R
Gayathri.R

Posted on

what is Stream

A stream can be defined as a sequence of data. There are two kinds of Streams −

InPutStream − The InputStream is used to read data from a source.

OutPutStream − The OutputStream is used for writing data to a destination.
Enter fullscreen mode Exit fullscreen mode

Streams

Java provides strong but flexible support for I/O related to files and networks but this tutorial covers very basic functionality related to streams and I/O. We will see the most commonly used examples one by one −

Top comments (0)