What are the similarities between an array and an ArrayList? The following are the similarities between an array and an ArrayList:
- Both array and ArrayList can have duplicate elements in them. - Both are unordered lists. - Both uses index to refer to their elements. - Both supports null values
|