A

Admin • 828.03K Points
Coach

Q. What is the result of `Stream.of(1, 2, 3).reduce(1, (a, b) -> a * b)`?

  • (A) 6
  • (B) 12
  • (C) 0
  • (D) 7

Explanation by: Admin
1 * 1 * 2 * 3 = 6, and since the identity is also 1, it multiplies to 6.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.