, x | = y x = x | ().
Here is an interesting example of why this is important.
int c = 2;
c %= c++ * ++c;
An interesting consequence here is that it will be written as
c = c % (c++ * ++c);
The Java specifications tell us that the JVM will first see the initial c and save it, everything that preceded it will not affect it, so C ++ and ++ c will not actually affect the result of the calculation. It will always be c = 2%, which is 2 :)
source
share