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.So this is the correct answer.