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 ?
More Questions on This Topic :
Question 7. Which of these are legacy classes? ....
Question 8. Which of these is the interface of legacy? ....
Submit Solution