worthant / Java-labs

:ledger: Speedrun from 0 to Junior Java Developer
https://se.ifmo.ru/courses/programming
Other
7 stars 1 forks source link

difference in inputs #40

Closed worthant closed 1 year ago

worthant commented 1 year ago

Just occured in my head after passing 5th lab

what is the difference of InputStream and Reader on low level?

i mean, symbols are also bytes, so what is the difference?

worthant commented 1 year ago

Reader reads symbols in their encoding a.k.a Unicode. InputStream reads as array of bytes