A

Admin • 830.13K Points
Coach

Q. Which method is used to check if a Map is empty?

  • (A) isEmpty()
  • (B) empty()
  • (C) hasNoValues()
  • (D) checkEmpty()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`isEmpty()` returns true if the Map contains no key-value mappings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.