A

Admin • 828.03K Points
Coach

Q. What is returned by the `remove(key)` method?

  • (A) The key
  • (B) The value removed
  • (C) True if removed
  • (D) Nothing
  • Correct Answer - Option(B)
  • Views: 3
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`remove(key)` returns the value associated with the key if present, else null.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.