πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) s -> !s.isEmpty()

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

Explanation by: Mr. Dubey
However, there is no direct method reference for negation; still, this lambda form is often used.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
39
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate