title: Primitive vs Object type in Java
body: <p>This question came to my mind because I have read somewhere that Java is not a pure Object oriented language since it is using primitives (which are not objects). I can agree with that. Now my problem is why we are using <code>primitives/wrappers</code> while we already have Object in same type?</p>
  
  <p>As an example if we consider <code>Integer</code>, It has same value limit as <code>int</code> other than object behavior. why still Java use <code>primitives</code> under these condition?</p>
  
  <p>As my opinion, if Java only use Object type <a href="http://docs.oracle.com/javase/tutorial/java/data/autoboxing.html" rel="noreferrer">Autoboxing and Unboxing</a> no need. Also there is no primitive for String by the way.     </p>