i

JAVA Complete Course

Character Streams

In Java, characters are stored using Unicode conventions.  Character stream automatically allows us to read/write data character by character. For example FileReader and FileWriter are character streams used to read from source and write to destination.

Let’s see an example of reading characters from file:

A screenshot of a cell phone

Description automatically generated