Multiple choice technology

You need to create a class that will store unique object elements. You do not need to sort these elements but they must be unique. What interface might be most suitable to meet this need?

  1. Set

  2. List

  3. Map

  4. Vector

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

Set interface specifically models collections that contain no duplicate elements, exactly matching the requirement for unique object storage without ordering. List allows duplicates, Map stores key-value pairs (not just unique elements), Vector is a legacy List implementation.