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

To solve this question, the user needs to have knowledge of abstract classes and the hierarchy of classes used for writing characters.

The option A, FileWriter, is incorrect because it is a concrete class that extends CharWriter.

The option B, CharWriter, is incorrect because it is also a concrete class that extends Writer.

The option C, Writer, is the correct answer because it is the abstract class that serves as the superclass of all classes used for writing characters.

The option D, OutputStream, is incorrect because it is the superclass of all classes used for writing bytes.

The option E, FileOutputStream, is incorrect because it is a concrete class that extends OutputStream.

Therefore, the answer is: C. Writer