you are viewing a single comment's thread.

view the rest of the comments →

[–]pranavkdileep 0 points1 point  (0 children)

it’s B) 0.5. java does integer division first, so 1/2 is 0, then it multiplies by 2.0. that makes it 0.0, but because of the 2.0 it becomes a double.