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?
Options
A : java.util.Map
B : java.util.Set
C : java.util.List
D : java.util.Collection
Objects and Collections - General Questions more questions
Which is a valid declarations of a String?
What is the numerical range of a char?
Suppose that you would like to create an instance of....
Which class does not override the equals() and hashCode() methods,....
Which collection class allows you to grow or shrink its....
Which interface does java.util.Hashtable implement?
Which interface provides the capability to store objects using a....
Which collection class allows you to associate its elements with....
Which collection class allows you to access its elements by....
Which is valid declaration of a float?
Declarations and Access Control - General Questions more Online Exam Quiz
Declarations and Access Control - General Questions
Language Fundamentals - General Questions
Automobile Engineering - Part 1
Compressors, Gas Dynamics and Gas Turbines - Part 1