Junior — Middle
How much memory does the byte data type occupy in computer memory?
sobes.tech AI
Answer from AI
In Java, the data type byte occupies exactly 1 byte (8 bits) of memory. It is a signed integer type and can hold values from -128 to 127.
This fixed size is platform-independent, ensuring code portability.