Completion requirements
This chapter explains Java's FileWriter class and how you can use it to store data in files.
3. FileWriter
Answer:
Yes
FileWriter
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.
A 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 aFileWriter
object have this method?