According to this source code for the Arrays class, the method asList passes an array to the constructor of new ArrayList. But there i
Arrays
asList
ArrayList
java.util.Arrays.ArrayList is a different class than java.util.ArrayList.