Multiple choice

How many subclasses of Writer class are there in java?

  1. 7

  2. 6

  3. 8

  4. 9

  5. 5

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