title: Which method on the wrapper class is getting called when boxing a primitive in Java
body: <p>Which method in the <code>Integer</code> class will be used when you do <code>Integer i = 1;</code></p>
  
  <p>I'm pretty sure that it's not the constructor, it might be the <code>valueOf()</code> method.</p>