Multiple choice

How many subclasses of the Output Stream class are present in Java?

  1. Nine

  2. Six

  3. Five

  4. Eight

  5. Seven

Reveal answer Fill a bubble to check yourself
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.