Why in java answer for variable a is 2.0 but I think it should be 2.5 and also google said 2.5 .
double a = 1.0 + 2 * 3 / 4;
Why in java answer for variable a is 2.0 but I think it should be 2.5 and also google said 2.5 .
double a = 1.0 + 2 * 3 / 4;