As far as I know, when we are creating an ArrayList:
ArrayList
ArrayList list = new ArrayList(SIZE);
The JVM res
I assume it will run out of memory since there will be no space to use in the case where JVM can extend array size.