D. Primitive Types

Image

Fig. D.1 | Java primitive types.

You can use underscores to make numeric literal values more readable. For example, 1_000_000 is equivalent to 1000000.

For more information on IEEE 754 visit http://grouper.ieee.org/groups/754/. For more information on Unicode, see Appendix H.

Get Java™ How To Program (Early Objects), Tenth 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.