R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the return type of `Collectors.reducing()`?

  • (A) List
  • (B) Optional
  • (C) Depends on reduction function
  • (D) Optional or T
  • Correct Answer - Option(D)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
It can return Optional or T depending on the version of `reducing()` used.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.