title: Are Java primitives immutable?
body: <p>If a method has a local variable <code>i</code>:</p>
  
  <pre><code>int i = 10;
  </code></pre>
  
  <p>and then I assign a new value:</p>
  
  <pre><code>i = 11;
  </code></pre>
  
  <p>Will this allocate a new memory location? Or just replace the original value?</p>
  
  <p>Does this mean that primitives are immutable?</p>