The document outlines the sizes and ranges of various Java data types. It details that byte, short, int, long, float, double, boolean, and char have specific byte sizes and value ranges. For example, a byte occupies 1 byte and ranges from -128 to 127, while a double occupies 8 bytes and can store up to 15 decimal digits.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Java Variable Sizes
The document outlines the sizes and ranges of various Java data types. It details that byte, short, int, long, float, double, boolean, and char have specific byte sizes and value ranges. For example, a byte occupies 1 byte and ranges from -128 to 127, while a double occupies 8 bytes and can store up to 15 decimal digits.