Modulus Operator Output - Java Quiz Question


What will be the output of the following program?


A
x mod 10 = 2y mod 10 = 2.25
B
x mod 10 = 2
y mod 10 = 0
C
Program does not compile since we can find modulus only for integers.
D
x mod 10 = 2
y mod 10 = 2.25