A

Admin • 831.35K Points
Coach

Q. What is the use of `reduce()` in streams?

  • (A) To reduce stream size
  • (B) To perform aggregation
  • (C) To filter elements
  • (D) To convert to list

Explanation by: Admin
reduce() is used for combining elements, like sum, max, etc.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.