Q:

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?

0

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. java.util.Map.
  2. java.util.Set.
  3. java.util.List.
  4. java.util.SortedSet.
  5. java.util.StoredMap.
  6. java.util.Collection.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

java.util.SortedSet.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Core Java Multiple Choice Questions And Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which statement is true for the class java.util.Ha... >>
<< You want subclasses in any package to have access ...