Objects and Collections on Java related Questions and Answers


Question :   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
Answer :   2 - java.util.Set  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter