Home > DeveloperSection > Interviews > What is a stream and what are the types of Streams and classes of the Streams?

Posted on    November-25-2010 12:00 AM

 Java Java 
Ratings:
 1 Answer(s)
  743  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    November-25-2010 1:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick