Quick Reminder: Java Primitive Types Sizes

Quick Reminder:


 

Java's primitive types and their sizes :

Data Type Size
char 2 bytes (16 bits)
short 2 bytes (16 bits)
int 4 bytes (32 bits)
float 4 bytes (32 bits)
long 8 bytes (64 bits)
double 8 bytes (64 bits)

Commentaires

Posts les plus consultés de ce blog

Circular Dependency Warning in IntelliJ with Maven in a Java Web Project

The Importance of Checking for Null Values and the Order of Conditions in Java