R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the main purpose of downstream collectors?

  • (A) To pre-process elements before streaming
  • (B) To apply post-processing to stream results
  • (C) To be used inside another collector like `groupingBy` or `partitioningBy`
  • (D) To collect into files
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
Downstream collectors are used inside collectors like `groupingBy()` to further transform or aggregate values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.