R

Ram Sharma • 3.40K Points
Extraordinary

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

  • (A) Splits the stream into two and merges their results
  • (B) Duplicates the stream
  • (C) Sorts the stream into two groups
  • (D) Merges two streams
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collectors.teeing()` lets you run two collectors on a stream and merge their results using a BiFunction.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.