Java: Range of a byte
A byte
is a signed 8-bit integer.
Min value (inclusive) and max value (inclusive):
−128 … 127
or, equivalently
−27 … 27−1
These values are available as constants: Byte.MIN_VALUE
and Byte.MAX_VALUE
.
See ranges of all primitive types here: Ranges of Primitive Types