Home / Java Programming / Objects and Collections :: Discussion

Discussion :: Objects and Collections

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

  2. A.
    Java.util.Map
    B.
    Java.util.Set
    C.
    Java.util.List
    D.
    Java.util.Collection

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment