Computer Applications
List the size of primitive data types in Java.
Values & Data Types Java
38 Likes
Answer
Data Type | Size in Bytes |
---|---|
byte | 1 |
short | 2 |
int | 4 |
long | 8 |
float | 4 |
double | 8 |
char | 2 |
boolean | 1 |
Answered By
25 Likes
Related Questions
Describe primitive data types in Java.
Which integer and floating point data types take up the same number of bits in computer memory?
What is variable initialisation in Java? What are the default values of the following type of variables? short, int, long, float, double, and char.
What is wrong with the following statement?
float flt = 7895.0345;