Declaring arrays without using the 'new' keyword in Java
<p>Is there any difference between the following two declarations?</p>

<pre><code>int arr[] = new int [5];
</code></pre>

<p>and </p>

<pre><code>int arr1[] = {1,2,3,4,5};
</code></pre>

<p>Is <code>arr1</code> declared on stack or on the heap?</p>