Home » Java Programming » Objects and Collections

Which interface provides the capability to store objects using a key-value pair?

Correct Answer: Java.util.Map

Explanation:

An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.

← Previous Question Next Question→

More Questions from Objects and Collections

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion