R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `anyMatch()` return?

  • (A) List
  • (B) boolean
  • (C) Optional
  • (D) int
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`anyMatch()` returns `true` if any element of the stream matches the predicate.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.