Java / List and its implementations
What are the similarities between an array and an ArrayList?
An array and an array list share the below properties that make its behavior similar in Java.
- Both array and ArrayList allow duplicate elements.
- Both are unordered lists.
- Both uses index to refer and retrieve its elements and index starts with 0.
- Both supports null values.
- Both maintain the order of insertion.
More Related questions...