The answer is correct. It has to do with when the increment/decrement occurs. For a fuller explanation, please check the relevant chapter in the text you are using to learn Java or online.
...