Correct Answer : A
The value to be stored must fall in the range of datatype to be used and among the suitable datatypes the one with minimal space is selected.
Range of float
: 1.40e-45
to 3.40e+38
Range of double
: 4.9e-324
to 1.8e+308
Range of long
: -9,223,372,036,854,775,808
to 9,223,372,036,854,775,807
long
is not suitable. float
and double
are suitable. In order to save space we use float
.