Which of the following is a reason to use an ArrayList instead of an array?
An ArrayList allows faster access to its kth item than an array does.
An ArrayList always uses less memory than an array does.
An ArrayList can store objects and an array can only store primitive types.
An ArrayList resizes itself as necessary when items are added, but an array does not.
An ArrayList provides access to the number of items it stores, but an array does not.