Copy to Clipboard with the expected result that a and b get the value 5 Then operator precedence along with its associativity defines the order of evaluation of expression Operator associativity can either be lefttoright or righttoleft Means if an expression contains two or more operators of same precedence Then they are evaluated in either left to right or right to left order Consider the below expression 1 Answer1 Operator precedence/associativity specifies which operators that "glue together" with which operand In this case they specify that the expression should be parsed as (ac) and not ac etc Since the relational operators have higher precedence than equality operators, associativity doesn't matter here
Java Operator Precedence And Associativity Table
