What is a stream? what are the different types and classes
of Streams?

Answer Posted / janet

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

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between an object and a class?

592


What is string literal in java?

543


What is locale?

590


Outline the major features of java.

557


Which is better list or arraylist in java?

480






How do you make an arraylist empty in java?

461


What is a instance variable?

571


Explain differences between collection api and stream api?

598


What is the purpose of the enableevents() method?

568


When can an object reference be cast to an interface reference in java programming?

559


What's the difference between comparison done by equals method and == operator?

520


What is the meaning of variable in research?

545


When is the finalize() called?

682


How to check if linked list contains loop in java?

440


What is the function of log?

533