A

Admin • 802.91K Points
Coach

Q. Which method retrieves a value for a given key from a Map?

  • (A) getKey()
  • (B) fetch()
  • (C) get()
  • (D) lookup()
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`get()` is used to retrieve the value associated with a key.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.