Are ints stored in memory the same as objects?
<p>When we declare an an like</p>

<pre><code>int myInt = 5;
</code></pre>

<p>Is myInt is a reference to an object of type int.</p>

<p>Is that setting up a reference to the object the same way as if we setup a class?</p>

<pre><code>StudentClass c = new StudentClass()
</code></pre>

<p>c is a reference and it points to the location of our Student Class?</p>

<p>And the only difference how it is treated when passed in paramaters.</p>

<p>I know how class objects work, just trying to understand primitive types.</p>
