In Java, a byteis a signed 8-bit value, and chara unsigned 16-bit value. Characteris both a shell type for charand a utility class for a number of useful methods that supportchar
The key difference between the InputStream is that it reads binary data, one byte at a time. A Readeris for reading text, and it decodes bytes in char, using the character encoding you set, or the default encoding, for example. UTF-8can turn 1, 2 or 3 bytes into one char.
I suggest you learn more about the very basics of Java. This will save you a lot of time on such questions.
source
share