Q. Which method reference can replace a lambda used in filtering non-empty strings?
β
Correct Answer: (C)
s -> !s.isEmpty()
Explanation: However, there is no direct method reference for negation; still, this lambda form is often used.