title: Comparing Performance of int and Integer
body: <p><strong>Which one is best in programming - <code>int</code> or <code>Integer</code>? Especially whenever both are doing the same task?</strong></p>
  
  <p>I am writing an application in Java. In most of the places of primitive data types, I use <code>int</code>; and for objects, I use <code>Integer</code>. So I am confused- which one is the best in places, where we have to use objects.</p>
  
  <p>According to performance, which one is best for a Java application?</p>