Java Evolution Order Of Operands
In JAVA we have only operator precedence but not operand precedence before applying any operator all operands will be evaluated from Left →Right.
example:-
class Test
{
public static void main(String [ ] args)
{
System.out.println(m1(1) + m1(2) * m1(3) / m1(4) + m1(5) * m1(6) );
}
public static int m1(int i)
{
System.out.println( i );
return i;
}
}