No, because double uses 64 bits,
the equivalent of
about 15 decimal digits of precision.
In the following situations, the compiler will not automatically perform the conversion.
| NO Automatic Conversion |
|---|
|
Remember the sizes of the various primitive types
(the primitive types char and
boolean are not listed here):
| type | number of bits |
|---|---|
| byte | 8 |
| short | 16 |
| int | 32 |
| long | 64 |
| float | 32 |
| double | 64 |
Click the button in the appropriate column for the following type conversions. There is only one correct column per row.