Arrays.asList() Confusing source code
<p>According to <a href="http://javasourcecode.org/html/open-source/jdk/jdk-6u23/java/util/Arrays.java.html" rel="nofollow">this source code</a> for the <code>Arrays</code> class, the method <code>asList</code> passes an array to the constructor of new <code>ArrayList</code>. But there is no such constructor. Doesn't varargs generate an array, so how is this possible?</p>

<p>Here is the <code>asList</code> source:</p>

<pre><code>public static &lt;T&gt; List&lt;T&gt; asList(T... a) {
    return new ArrayList&lt;T&gt;(a);
}
</code></pre>
