Multiple choice

Which statement is true for the class java.util.ArrayList?

  1. The elements in the collection are ordered.

  2. The collection is guaranteed to be immutable.

  3. The elements in the collection are guaranteed to be unique.

  4. The elements in the collection are accessed using a unique key.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Yes, always the elements in the collection are ordered.