R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `stream().min()` return?

  • (A) Minimum integer value
  • (B) Minimum double value
  • (C) An Optional describing the minimum element
  • (D) A List
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`min()` returns an `Optional` of the minimum element based on a comparator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.