R

Ram Sharma • 3.40K Points
Extraordinary

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

  • (A) Applies post-processing to the result of another collector
  • (B) Concatenates two collectors
  • (C) Modifies input before collecting
  • (D) Duplicates stream elements
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`collectingAndThen()` wraps another collector and applies a finishing function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.