java qs
What is the difference between double and int
a. int can store integer without decimal place and double can store decimal values
b. int cant store integer without decimal place and double can store decimal values
c. int can store integer without decimal place and double can store only decimal values
which option is the correct one ?
Anonymous:
any questions
Answers
Answered by
1
Answer:
int is a binary representation of a whole number, double is a double-precision floating point number. Short answer: int uses up 4 bytes of memory (and it CANNOT contain a decimal), double uses 8 bytes of memory. Just different tools for different purposes.
Similar questions