Computer Science, asked by SahajanyaChakraborty, 2 months ago

Write the range and size of byte data type in Java ​

Answers

Answered by KimBunny
1

Explanation:

Primitive Data Types

Data Type Size Description

byte 1 byte Stores whole numbers from -128 to 127

short 2 bytes Stores whole numbers from -32,768 to 32,767

int 4 bytes Stores whole numbers from -2,147,483,648 to 2,147,483,647

long 8 bytes Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036

Answered by kavishthegeniuskid26
0

Answer:

byte - 1 byte

short- 2 bytes

int - 4 bytes

long - 8 bytes

Similar questions