Stream & its types

Streams & Its types:
  • Java IO classes are used for basic input and output. It focuses primarily on I/O Streams, a powerful concept that greatly simplifies I/O operations.
  • A stream can be defined as a sequence of data. 
  • How it works:
  • There are the following kinds of Streams.
Byte Streams:
  • Byte streams are used to perform input and output of 8-bit bytes
  • Character streams are used to perform input and output for 16-bit Unicode. 
  • All byte stream classes are descended from InputStream and OutputStream
  • Figure:
  • There are many byte stream classes. 
  • Example: Classes of InputStream and OutputSteam: 


Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form