title: primitives vs wrapper class initialization
body: <p>What is the Difference between declaring int's as Below. What are the cases which suits the usage of different Types</p>
  
  <pre><code>int i     = 20;
  Integer i = 20;
  Integer i = new Integer(20);
  </code></pre>
  
  <p><strong>Please Note</strong> : I have goggled and found that first is going to create primitive int.Second is going to carry out auto boxing and Third is going to create reference in memory.</p>
  
  <p>I am looking for a Scenario which clearly explains when should I use first, second and third kind of integer initialization.Does interchanging the usage is going to have any performance hits  </p>
  
  <p>Thanks for Reply. </p>