When do we use the Array list?
Whenever there is a need for random access of elements in java we use ArrayList. Get and set methods provide really fast access to the elements using the array list.
🔗Reference: stackoverflow.com
🔗Source: Java Interview Questions and Answers