Solved

Assume That You Have Declared a Map Named MyMap to Hold

Question 48

Multiple Choice

Assume that you have declared a map named myMap to hold String elements with Integer keys. Which of the following statements will correctly retrieve the value of an element from myMap by using its key?


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

Correct Answer:

verifed

Verified

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

Related Questions