R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `Collectors.mapping()` do?

  • (A) Filters elements
  • (B) Maps elements during collection
  • (C) Sorts stream elements
  • (D) Joins strings
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collectors.mapping()` is used within `groupingBy` or `partitioningBy` to map values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.