Multiple choice

How many subclasses of Writer class are there in Java?

  1. Seven

  2. Six

  3. Eight

  4. Nine

  5. Five

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

There are 7 subclasses of Writer class in Java. These are 1) OutputStreamWrite for writing a character stream 2) BufferedWriter for buffering other writers 3) PrintWriter for writing formatted data 4) PipedWriter for writing to a pipe 5) CharArrayWriter for writing to a char array 6) StringWriter for writing to a string 7) FilterWriter for writing filtered streams. So this is the correct answer.