A

Admin • 828.70K Points
Coach

Q. What does the `findAny()` method return?

  • (A) First element of the stream
  • (B) Any element, possibly the first, wrapped in Optional
  • (C) All matching elements
  • (D) Null

Explanation by: Admin
`findAny()` returns any element (not guaranteed to be the first) wrapped in an Optional.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.