R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `findAny()` return?

  • (A) The first element
  • (B) The last element
  • (C) Any element (possibly first)
  • (D) An array of elements
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`findAny()` returns an `Optional` describing some element of the stream.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.