Question Assume that you have the following variables declared: int a = 3, b = 10, c = 7; double w = 12.9, y = 3.2; What do the following expressions evaluate to in Java? a) a / b b) (double) b / a c) a – b / c d) w / (int) y e) y / w f) b % c / a g) b % a
Question
Assume that you have the following variables declared:int a = 3, b = 10, c = 7; double w = 12.9, y = 3.2;
What do the following expressions evaluate to in Java?
a) a / b
b) (double) b / a
c) a – b / c
d) w / (int) y
e) y / w
f) b % c / a
g) b % a