Increment Operators Output - Java Quiz Question


What will be the output of the following program?


A
a = 2
b = 3c = 4
d = 1
B
a = 2
b = 3
c = 4
d = 1
C
Program does not compile.
D
a = 1
b = 2
c = 4
d = 2