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
What is method overloading and method overriding?
What is the buffer limit?
What is the purpose of static methods and static variables?
What causes memory leak in java?
What is arraylist class in java?
Explain the hierarchy of java exception classes?
What is a "pure virtual" member function?
What is parseint?
What is the impact of declaring a method as final?
How to handle a web browser resize operation?
Can we override private methods?
What are the major advantages of internal iteration over external iteration?
Is char a data type in java?
What if constructor is protected in java?
What is the purpose of the main method?