Java Tutorials - Herong's Tutorial Examples - Version 7.03, by Dr. Herong Yang
Data Types Supported in Java
This section provides a list of data types supported in Java: 8 primitive data types and 5 reference data types.
What are data types supported in Java? The following table lists all data types supported in Java and shows how they related to each other:
Data Types | |- Primitive Types | | | |- Numeric Types | | | | | |- Integral Types | | | |- byte | | | |- short | | | |- int | | | |- long | | | |- char | | | | | |- Floating Point Types | | |- float | | |- double | | | |- boolean | |- Reference Types | |- Class Or Interface Type | |- Class Type | |- Interface Type | |- Type Variable | |- Array Type | |- null
Primitive types will be discussed in this chapter. Reference types will be discussed in other chapters in this book.
Last update: 2014.
Table of Contents