A

Admin • 828.03K Points
Coach

Q. Which method checks whether a Map contains a specific key?

  • (A) hasKey()
  • (B) containsKey()
  • (C) keyExists()
  • (D) findKey()
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`containsKey()` checks if the specified key exists in the Map.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.