Memory allocation : How much space does a reference occupy in Java?
<p>In Java we have written a code:</p>

<pre><code>A a1;
a1 = new A();
</code></pre>

<p>How many bytes of memory is reserved when compiler compiles the code: </p>

<pre><code>A a1;
</code></pre>
