R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which collector groups stream elements by a classifier function?

  • (A) toSet()
  • (B) joining()
  • (C) groupingBy()
  • (D) mapping()
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collectors.groupingBy()` groups elements by a classifier function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.