Integers
There are four separate integer primitive data types
They differ by the amount of memory used to store them
Type
byte
short
int
long
Storage
8 bits
16 bits
32 bits
64 bits
Min Value
-128
-32,768
-2,147,483,648
< -9 x 1018
Max Value
127
32,767
2,147,483,647
> 9 x 1018
Previous slide
Next slide
Back to first slide
View graphic version