A

Admin • 832.27K Points
Coach

Q. What is returned by the `size()` method of a Map?

  • (A) Number of keys
  • (B) Number of values
  • (C) Number of key-value mappings
  • (D) Map capacity
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin

`size()` returns the number of key-value mappings in the map.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.