Saturday, December 10, 2011

Memory footprint of java primitives

Memory foot print of Java primitives

Java Primitive Data Types

Data Type Description Size Default Value
boolean true or false 1-bit false
char Unicode Character 16-bit \u0000
byte Signed Integer 8-bit (byte) 0
short Signed Integer 16-bit (short) 0
int Signed Integer 32-bit 0
long Signed Integer 64-bit 0L
longfloat Real number 32-bit 0.0f
double Real number 64-bit 0.0d

Next -- Garbage Collection explained
Prev -- Querying memory usage of a java object




ALSO READ
Java development 2.0: Ultra-lightweight Java web services with Gretty
An actor framework for Java concurrency
10 things you didn't know about java performance monitoring
Java collection performance - Chart view
The Clean Coder

1 comment:

Ilias Tsagklis said...

Hello! Nice blog! Is there an email address I can contact you in private?