+2 votes
in JAVA by
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1 Answer

0 votes
by

The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented. The ByteStream classes are used to perform input-output of 8-bit bytes whereas the CharacterStream classes are used to perform the input/output for the 16-bit Unicode system. There are many classes in the ByteStream class hierarchy, but the most frequently used classes are FileInputStream and FileOutputStream. The most frequently used classes CharacterStream class hierarchy is FileReader and FileWriter.

Related questions

+1 vote
asked May 12, 2021 in JAVA by rajeshsharma
0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
...