Default size of ArrayList
<p>Looking through some piece of code I noticed one strange initialization of ArrayList:</p>

<pre><code>... = new ArrayList&lt;..&gt;(0);
</code></pre>

<p>I've opened <em>JavaSE 7</em> sources and saw that inner elementData arrray is initialized by empty array constant - <code>{}</code>. When we pass capacity to the <code>ArrayList</code> constructor we do almost the same - <code>new Object[0]</code>. So my question is: is there is any difference between new <code>ArrayList(0)</code> and <code>new ArrayList()</code> ? Shouldn't <code>ArrayList</code> set the default capacity size to smth like 10 ?</p>

<p>Thanks all for answers.</p>