I have two similar questions about operator precedences in Java.
First one:
int X = 10; System.out.println(X++ * ++X * X++); //it pr
For the second one ->
int a=1, b=2; a += b + a++;
Compiler will convert it to
a = a + b + a++;
Then apply your logic and you will find the reason why a is 4.