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.Collection

All Answers

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

Correct Answer:

java.util.Set

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
Lambdas introduced in Java 8 allow us to treat... >>
<< Which collection class allows you to grow or shrin...