R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is returned by `reduce(0, Integer::sum)`?

  • (A) Maximum element
  • (B) Average of elements
  • (C) Sum of elements
  • (D) Count of elements
  • Correct Answer - Option(C)
  • Views: 17
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`reduce(0, Integer::sum)` adds up all elements starting with 0.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.