Writer

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page        

Answer:

A file.

Writer

Class FileReader is discussed in the following chapters. But now let us look at the classes that descend from Writer. Writer is an abstract class from which all character-oriented output streams are derived. All these streams are aimed at receiving 16-bit char data from a program, and sending it to another destination, which may use a different character format (such as UTF format on a disk file).

Java Writer hierarchy

All these classes are character-oriented output streams. We will be especially interested in FileWriter and PrintWriter classes.

QUESTION 10:

(Review: ) What type of data does an InputStream handle?