Computer Applications
List the size of primitive data types in Java.
Values & Data Types Java
36 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
24 Likes
Related Questions
What is wrong with the following statement?
float flt = 7895.0345;What is variable initialisation in Java? What are the default values of the following type of variables? short, int, long, float, double, and char.
Describe primitive data types in Java.
Which integer and floating point data types take up the same number of bits in computer memory?