A

Admin • 831.35K Points
Coach

Q. Which method returns a Set view of the keys in a Map?

  • (A) keySet()
  • (B) keys()
  • (C) entrySet()
  • (D) getKeys()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`keySet()` returns a Set view of all keys contained in the Map.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.