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

Click to view Correct Answer

Previous || Next

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

Threads - General Questions

Automobile Engineering - Part 1

Compressors, Gas Dynamics and Gas Turbines - Part 1

Engineering Materials - Part 1

Engineering Mechanics - Part 1