You'll get an error with this because "z" is not declared... "Z" is declared but not used. So...
x += y += z;
System.out.println(x < y ? y : x);
System.out.println(x < y ? x++ : y++);
Be careful with this: x += y += z;
What you really have is this: x += (y += z);
And that's ok if that's what you want.
Solve it from the inside out...
z is 1
y becomes 2
x becomes 3
Now the output statements...
x is not < y, so print x, which is 3
x is not < y, so print y, which is 2,
then increment y by 1, and y becomes 3
print x, which is 3
print y, which is 3
The result is...
The answer is B.