Objects and Collections

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

A Java.util.Map

B Java.util.Set

C Java.util.List

D Java.util.Collection

ANS:A - Java.util.Map

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



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.