Alexander Zotz wrote:OCP Java SE11 Complete study guide, site 86 is following Question:
i thought the post-decrement would change the value after the calculation, like this:
1. ++lion
2. 4 * 5 / 4
3. lion--
after getting the result (2), i would decrement lion.
But in the explanation they do the post-decrement first. I cant understand why..
1. lion--
2. ++lion
3. 3 * 5 / 3
Can someone explain me this?