R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `collect(Collectors.toMap(f1, f2, f3, f4))` signify?

  • (A) Map supplier missing
  • (B) Custom map with merge and collector
  • (C) Key, value, merge function, and map supplier
  • (D) Joining in a Map
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
The four-arg `toMap()` includes keyMapper, valueMapper, mergeFunction, and mapSupplier.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.