Hi guys,
Sorry one more for today
I am reading a tutorial on logical operators and it states "The associativity of the &&, ||, &, | and ^ operators is from left to right." It also includes a diagram of these operators in the order above with an arrow moving from left to right.
This does not seem to match the precedence rules I have found on a number of web sites e.g.
http://www.uni-bonn.de/~manfear/javaoperators.php I think the order of precedence should be &, ^, |, &&, ||
Can someone verify this for me (and that the tutorial is incorrect)?
Cheers,
John