Java Streams
Java Streams
Stream
• A stream is an abstract representation of an input and
output device used to read and write data.
Advantages of Streams
• No need to learn inner working of each
device separately.
• The program will work for different input
and output devices without any code
changes.
Types of Stream
1. Byte Stream
2. Character Stream
Types of Stream
Program I ‘ M A S T R I N G \n Device