Array initialization differences java
<p>What is the difference between the two following methods of array initialization:</p>

<ol>
<li><code>Object[] oArr = new Object[] {new Object(), new Object()};</code></li>
<li><code>Object[] oArr = {new Object(), new Object()};</code></li>
</ol>

<p>Is it related to heap/stack allocation?</p>

<p>Thanks!</p>
