title: Arithmetic Operators in Java (Beginner Question)
body: <p>I know that array operators have the precedence. Then the binary arthimetic operators * , / , % . Then + and  - which they are low precedence.</p>
  
  <p>But I'm confused which one will java solve first in this example.
  And if we have 2 operators have the same priority, what operator will be used first in java?</p>
  
  <p>Thank you.</p>
  
  <pre><code>int x = y = -2 + 5 * 7 - 7 / 2 % 5;
  </code></pre>
  
  <p>If someone could solve this for me and explain to me part by part. Because this always confuses me in exams.</p>