Home / Java Programming / Objects and Collections :: Discussion

Discussion :: Objects and Collections

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

  2. A.
    The elements in the collection are ordered.
    B.
    The collection is guaranteed to be immutable.
    C.
    The elements in the collection are guaranteed to be unique.
    D.
    The elements in the collection are accessed using a unique key.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Yes, always the elements in the collection are ordered.


Be The First To Comment