The array size in Java is fixed after declaration?
<p>I wanted to know if the Java arrays are fixed after declaration. When we do:</p>

<p><code>int a[10];</code></p>

<p>and then can we do:</p>

<p><code>a = new int [100];</code></p>

<p>I am unsure if the first statement already allocates some memory and the second statement allocates a new chunk of memory and reassigns and overwrites the previous reference.</p>
