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 the hashcode () and equals () used for?
What is variable in java?
Can a abstract class be declared final?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What does it mean that strings are immutable?
What is the largest long allowed by java?
What is string builder?
What technique can be employed to compare two strings?
What is outofmemoryerror in java?
How to remove the trailing spaces from a string?
What is basic syntax?
What are heap memory and stack memory and what are memory tables.
What are the changes in java.io in java 8 ?
How can we create a synchronized collection from given collection?
Difference between current previous versions of Java?