R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to create a downstream collector that transforms and then reduces data?

  • (A) mapping()
  • (B) teeing()
  • (C) reducing()
  • (D) collectingAndThen()
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`mapping()` transforms stream elements before passing to a downstream collector like reducing or toList.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.