What is a stream and what are the types of Streams and classes of the Streams?
A stream is sequence of flowing data. Stream is an abstract class in Java, that is used to either read the data or write the data to/from a disk file, device, a network socket, other programs, a memory array etc.
There are two types of streams that Java support :
* Byte oriented streams.
* Characters oriented streams.
Classes of the Streams :