Question
Which of these methods can be used to obtain set of all keys in a map?
Answer: Option D
Was this answer helpful ?
keySet() methods is used to get a set containing all the keys used in a map. This
method provides set view of the keys in the invoking map.
Was this answer helpful ?
Submit Solution