i

JAVA Complete Course

Introduction To I/O Streams

Java performs Iinput/Output through Streams. Generally, a stream can be understood as a continuous flow of data. Streams are dealing with input/output without having every part of your code understand the physical.

In Java application output stream helps us to write data to destination; it may be a file, an array, peripheral device or socket. For reading data from the source, we are using input streams in Java applications; it may be a file, an array, peripheral device or socket.

OutputStream and InputStream are abstract classes and let’s see their hierarchies.