

An integer array of size three, after which we set values to indexes 0 and 2. Example: ArrayList
Here are some advantages of using ArrayList over arrays.1) You can define ArrayList as re-sizable array. Instead of arrays, you can use ArrayList class which addresses all these drawbacks. Memory is allocated to an array during it’s creation only, much before the actual elements are added to it.Because of these drawbacks, use of arrays are less preferred.
...
