What data type should be used to store value 22.23 in java so that it occupies minimum possible storage space retaining its real value?
Answers
Answered by
0
What data type should be used to store value 22.23 in java so that it occupies minimum possible storage space retaining its real value?
answer:
int or byte
Shrieya:
But the no has decimal.
Answered by
0
It can be float or double datatype.
But float is most appropriate as it occupies 4 bytes that is minimum possible storage value,while double occupies 8 bytes.
Hope it will help you.
Mark me brainlest.
If you like my answer.And follow me for more java doubts
Similar questions