Computer Science, asked by Anonymous, 1 month ago

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
Anonymous: o sorry @selfiequeen
Anonymous: go t
Anonymous: its okk
Anonymous: dear
Anonymous: bye priyanka . will come later somewhere else .
Anonymous: u r so sweet
Anonymous: thanks

Answers

Answered by Anonymous
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