Java OCA OCP Practice Question 1336

Question

What can contain objects that have a unique key field of String type, if it is required to retrieve the objects using that key field as an index?

  • A. Map
  • B. Set
  • C. List
  • D. Collection
  • E. Enumeration


A.

Note

The Map interface provides the capability to retrieve objects by their keys.

The others do not.




PreviousNext

Related