Identify the correct statements about ArrayList?
Select 3 options
Correct Options are : B C E
A. is wrong. Direct Known Subclasses: AttributeList, RoleList, RoleUnresolvedList
B. is true because only Objects can be stored in it.
C. is true because it implements java.util.RandomAccess interface, which is a marker interface that signifies that you can directly access any element of this collection.
This implies that it takes the same amount of time to access any element.
D. is wrong. It does resize dynamically. Compare that to an array, which cannot be resized once created. E. An ArrayList is backed by an array.
E. is true.
The elements are actually stored in an array and that is why is it called an ArrayList.