Integer.class and int.class
<p>How does this Java statement compile without warnings?</p>

<pre><code>Class&lt;Integer&gt; x = int.class;
</code></pre>

<p>even though</p>

<pre><code>Integer.class != int.class
</code></pre>

<p><strong>Edit:</strong> Putting it a different way, it seems as though <code>Integer.class</code> and <code>int.class</code> have nothing in common (see comments below), so why does it make sense for this assignment to be possible?</p>
