R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector requires a downstream collector to collect values in a partition?

  • (A) groupingBy()
  • (B) mapping()
  • (C) partitioningBy(predicate, downstream)
  • (D) reducing()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`partitioningBy(predicate, downstreamCollector)` partitions values and then collects them accordingly.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.