title: What is the main difference between primitive type and wrapper class?
body: <p>What is the difference between these two lines?</p>
  
  <pre><code>    int pInt = 500;
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>    Integer wInt = new Integer(pInt);
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>    Integer wInt = new Integer(500);
  </code></pre>