title: Is Integer created on stack or heap?
body: <p>I know that all the primitive types like int are value types and are created on the stack where as strings, object arrays etc are reference types and are created on heap.</p>
  
  <p>My doubt is as follows.
  If I create an object of an integer like
  int i = new int();
  then since its an object, will it be created on stack or heap?</p>