R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `collectingAndThen()` do?

  • (A) Executes stream terminal operation twice
  • (B) Performs final transformation after collecting
  • (C) Applies filter to collected values
  • (D) Sorts collected elements
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`collectingAndThen()` applies a finishing function to the result of another collector.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.