Floating point variables conversion110 - Java Quiz Question


What will be the output of the following program?


A
i = 44
f = 44.0
d = 44.0
B
i = 103.67
f = 44
d = 98.42
C
Compilation error since the initialization of double d is wrong. It should be 103.67d.
D
Compilation errors since we are casting integer to float and float to double.