Quote:
How java bytestream works?
In a stream, a byte is the smallest chunk of data you can handle because it is how computer works.
You can consider that a byte is like a digit (for computer), just like for us, a digit is 0-9 for us.
A bytestream have no idea of the meaning of bytes or their organization.
Example: 20200118, it can be 8 number if 1 digit, or 1 number of 8 digit, or 3 numbers of 4 and 2 and 2 digits to encode a date.
Byte - Wikipedia[
^]
Bit - Wikipedia[
^]