About Operator Precedence In Java :
Operator precedence plays an important role if there are multiple operators involved in an expression.
As shown above, if an expression contains multiple operators then the expression is evaluated according to the precedence. In java
Although Java can evaluate using its precedence table, it is suggested to use parentheses
Since parentheses have highest priority they will be evaluated first. Also note that parentheses does not slow down the evaluation. Precedence table showing all the operators supported in Java.