You need to store elements in a collection that guarantees that no duplicates…

PYQ RPSC Programmer 2011

You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?

  1. A.

    java.util.Map

  2. B.

    java.util.Set

  3. C.

    java.util.List

  4. D.

    java.util.Collection

Attempted by 2 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…