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

Copilot Blank Chat in IntelliJ? Create the Missing Files to Fix It

Restoring the Local Changes Tab in IntelliJ IDEA (2024)

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