R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method checks if no elements match the given predicate?

  • (A) anyMatch()
  • (B) noneMatch()
  • (C) allMatch()
  • (D) matchNone()
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`noneMatch()` returns true if no elements in the stream match the predicate.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.