A

Admin • 832.27K Points
Coach

Q. Which method reference can replace a lambda used in filtering non-empty strings?

  • (A) String::isEmpty
  • (B) String::equals
  • (C) s -> !s.isEmpty()
  • (D) String::isBlank

Explanation by: Admin

However, there is no direct method reference for negation; still, this lambda form is often used.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.