Solved

Assume That You Have Declared a Map Named MyMap to Hold

Question 6

Multiple Choice

Assume that you have declared a map named myMap to hold String values with Integer keys.Which of the following statements will correctly retrieve the value associated with a key from myMap?


A) myMap.peek(3) ;
B) myMap.get("apple") ;
C) myMap.peek("apple") ;
D) myMap.get(3) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions