Java defines eight simple data types:
Java simple types are not object-oriented. Java primitive data types can be put in four groups:
Simple types in Java
Data type group | Data type in Java |
---|---|
Integers | byte, short, int, and long |
Floating-point numbers | float and double, |
Characters | char |
Boolean | boolean |
Type | Effective Representation Size (bits) |
---|---|
byte | 8 |
int | 32 |
float | 32 |
char | 16 |
short | 16 |
long | 64 |
double | 64 |
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |