Learn more in the app.
View in app
Floating point variables conversion110 - Java Quiz Question
What will be the output of the following program?
i = 44
f = 44.0
d = 44.0
i = 103.67
f = 44
d = 98.42
Compilation error since the initialization of double d is wrong. It should be 103.67d.
Compilation errors since we are casting integer to float and float to double.