topic/Objects and Collections
Start Test
Question No
Title
Type
Marks
746.
Suppose that you would like to create an instance of a newMapthat has an iteration order that is the same as the iteration order of an existing instance of aMap. Which concrete implementation of theMapinterface should be used for the new instance?
MCQ
5
750.
Which interface doesjava.util.Hashtableimplement?
MCQ
5
747.
Which class does not override theequals()andhashCode()methods, inheriting them directly from class Object?
MCQ
5
748.
Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized?
MCQ
5
749.
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?
MCQ
5