what is operator precedence in java?
Operator precedence determines the order in which the operators in an expression are evaluated. ... When two operators share a common operand, 4 in this case, the operator with the highest precedence is operated first. In Java, the precedence of * is higher than that of - .