How many subclasses of the Output Stream class are present in Java?
-
Nine
-
Six
-
Five
-
Eight
-
Seven
C
Correct answer
Explanation
There are five subclasses of Output Stream class.
These are
1) File Output Stream - for writing bytes into file.
2) Object Output Stream - for writing objects and primitive data types to output stream.
3) Byte Array Output Stream:- For output stream that writes byte into array.
4) piped Output Stream - for writing into a piped stream.
5) Filter Output Stream : for filtering output into an existing stream. So this is an incorrect answer.