Ranges(Effective Sizes) of Numeric Primitives. The positive range is one less than the negative range. : Primitive Data Types « Java Source And Data Type « SCJP






Type            Bits           Bytes          Minimum Range           Maximum Range

byte            8              1              -2^7                    2^7-1

short           16             2              -2^15                   2^15-1

char            16

int             32             4              -2^31                   2^31-1

long            64             8              -2^63                   2^63-1

float           32             4              n/a                     n/a

double          64             8              n/a                     n/a








1.8.Primitive Data Types
1.8.1.Primitive Data Types are simple non-object data types.
1.8.2.You can declare one or more primitives, of the same primitive type, in a single line.
1.8.3.Ranges(Effective Sizes) of Numeric Primitives. The positive range is one less than the negative range.
1.8.4.Java integer primitives are always signed except for the char primitive type.
1.8.5.Automatic Initialization/Default Values for Primitive Types