Multiple choice technology programming languages

Which abstract class is the super class of all classes used for writing characters. Select the one correct answer.

  1. FileWriter

  2. CharWriter

  3. Writer

  4. OutputStream

  5. FileOutputStream

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

Writer is the abstract superclass for all character stream classes that write characters. FileWriter, PrintWriter, BufferedWriter, and other character-writing classes all extend Writer. OutputStream is for byte streams, not character streams. CharWriter is not a standard Java class. FileOutputStream writes bytes, not characters.