Most of the programming languages define the order in which operators are executed. We call this order as Operator Precedence. In this video, I will explain what Operator Precedence is and what is the importance of it. Also, we will see how one can avoid multiple statements with the strength of a single complex expression.

 
You will see how an expression is evaluated on three rules.
  1. Parenthesis
  2. High to Low Precedence
  3. Left to Right on Equal Precedence.
 

Operator Precedence In Java