Home >Java >javaTutorial >8 basic data types of java and their number of bytes
Data type | Keyword | Number of bytes | |
Numeric type | Integer type | byte | 1 |
short | 2 | ||
4 | |||
8 | |||
float | 4 | ||
8 | ##Boolean | ||
boolean | 1(bit) | Character type | |
char | 2 |
The above is the detailed content of 8 basic data types of java and their number of bytes. For more information, please follow other related articles on the PHP Chinese website!