title: Division value casted to double with tricks in parentheses
body: <p>The following code with presence and absence of parentheses produce different output. Why?</p>
  
  <pre><code>System.out.println((double) 3/6);    // output 0.5
  
  System.out.println((double) (3/6));  // output 0.0
  </code></pre>