title: Adding int to short
body: <p>A colleague of mine asked this question to me and I am kind of confused.</p>
  
  <pre><code>int i = 123456;
  short x = 12;
  </code></pre>
  
  <p>The statement</p>
  
  <pre><code>x += i;
  </code></pre>
  
  <p>Compiles fine however</p>
  
  <pre><code>x = x + i;
  </code></pre>
  
  <p>doesn't</p>
  
  <p>What is Java doing here? </p>