Any shortcut to initialize all array elements to zero?
<p>In <code>C/C++</code> I used to do </p>

<pre><code>int arr[10] = {0};
</code></pre>

<p>to initialize all my array elements to 0.<br>Is there a similar shortcut in Java?
<br>I want to avoid using the loop, is it possible?</p>

<pre><code>int arr[] = new int[10];
for(int i=0;i&lt;arr.length;i++)
    arr[i] = 0;
</code></pre>
