java - ArrayList and array: Why do they have different max lengths? -
according these questions so: list max size array max length the max length of array integer.max_value - 5 , whereas max size of list integer.max_value when @ arraylist , wrapper around array. how can wrapper allow length longer of array under hood?