Primitive data types in Java

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 groupData type in Java
Integersbyte, short, int, and long
Floating-point numbersfloat and double,
Characterschar
Booleanboolean

Primitive Data Types and Their Effective Sizes

TypeEffective Representation Size (bits)
byte8
int32
float32
char16
short16
long64
double64
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.