Values in bytearray should be integers between
Answers
Answered by
11
-128 to 127
The byte data type is primarily seen in JAVA.
JAVA has eight primitive data types, of which byte is one.
A byte type variable is allocated 8 bits of memory space.
Also, the byte data type uses the two's-complement system to store the numbers.
The range of byte data type is -128 to 127. So, we can fill in any integer within that range.
So, when we declare a byte array, the values that will be stored will have the byte data type. And so their range will also be -128 to 127.
The byte data type is primarily seen in JAVA.
JAVA has eight primitive data types, of which byte is one.
A byte type variable is allocated 8 bits of memory space.
Also, the byte data type uses the two's-complement system to store the numbers.
The range of byte data type is -128 to 127. So, we can fill in any integer within that range.
So, when we declare a byte array, the values that will be stored will have the byte data type. And so their range will also be -128 to 127.
Answered by
2
-128 to 127
Hope it helps you.
Hope it helps you.
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
Physics,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago