Writing Text Files

3. FileWriter


Answer:

Yes

FileWriter

writerHierarchy

Class FileWriter is used for output of character data to a disk file. The arrows in the diagram show inheritance. An arrow points to the parent class.

FileWriter is a kind of OutputStreamWriter, which is a kind of Writer. When you read Java documentation, you might need to look at several ancestors of the class you are interested in.

Question 3:

Say that OutputStreamWriter has a method you would like to use. Will a FileWriter object have this method?