WHAT IS A STREAM AND WHAT ARE THE TYPES OF STREAMS AND CLASSES OF THE STREAMS?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 915  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    What is a stream and what are the types of Streams and classes of the Streams?

    A Stream is an abstraction that either produces or consumes information. There are two types of Streams and they are:
    Byte Streams: Provide a convenient means for handling input and output of bytes.
    Byte Streams classes: Are defined by using two abstract classes, namely InputStream and OutputStream.
    Character Streams: Provide a convenient means for handling input & output of characters.
    Character Streams classes: Are defined by using two abstract classes, namely Reader and Writer.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!