Readers

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        

Can Java use characters from Java?

Answer:

Yes. (Seems only fair.)

Readers

Reader is an abstract class from which all character-oriented input streams are derived. These streams deliver 16-bit char data to a program. The source of the data may be in a variety of formats (such as UTF format on a disk file). The diagram shows several Reader classes.

Java Reader hierarchy

All these classes are character-oriented input streams. Don't memorize this diagram. Only a few classes are discussed in these notes; mostly FileReader.

QUESTION 9:

What (do you think) is the source of data for a FileReader?