Which of the following statements is true about ArrayLists in Java?
A. ArrayLists can only store primitive data types.
B. ArrayLists can have duplicate elements.
C. ArrayLists are fixed in size.
D. ArrayLists can only store Strings.
Answer: Option B
Join The Discussion