Which statement is true for the class java.util.HashSet?
- The elements in the collection are ordered.
- The collection is guaranteed to be immutable.
- The elements in the collection are guaranteed to be unique.
- The elements in the collection are accessed using a unique key.
- The elements in the collections are guaranteed to be synchronized.
Correct Answer:
The elements in the collection are guaranteed to be unique.
need an explanation for this answer? contact us directly to get an explanation for this answer