I have an expression that I'm confused with the results how it's calculated
int a = 7;
boolean res = a++ == 7 || a++ == 9;
System.out.println("a = " + a);
System.out.println("res = " + res);
This give me as results :
a = 8
res = true
I didn't understand why a get the value 8 I expect a = 9 as a results can some one explain me how it's calculated ?