title: What is the priority of casting in java?
body: <p>if I have a line of code that goes something like  </p>
  
  <pre><code>int s = (double) t/2   
  </code></pre>
  
  <p>Is it the same as    </p>
  
  <pre><code>int s = (double) (t/2)
  </code></pre>
  
  <p>or </p>
  
  <pre><code>int s = ((double) t)/2
  </code></pre>
  
  <p>?</p>