A

Admin • 830.13K Points
Coach

Q. Which method merges a new value into the Map based on the key and a remapping function?

  • (A) put()
  • (B) merge()
  • (C) join()
  • (D) combine()
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
The `merge()` method was introduced in Java 8 to combine values based on a remapping function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.