D Primitive Types
Fig. D.1
Type | Size (bits) | Values | Standard |
---|---|---|---|
boolean |
true or false |
||
char |
16 | '\u0000' to '\uFFFF' (0 to 65535) |
(ISO Unicode character set) |
byte |
8 | ||
short |
16 | ||
int |
32 | ||
long |
64 | ||
float |
32 | Negative range: | (IEEE 754 floating point) |
Positive range: | |||
double |
64 | Negative range: | (IEEE 754 floating point) |
Positive range: |
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.