πŸ“Š JAVA
Q. What does the following lambda expression represent: `x -> x % 2 == 0`?
  • (A) Checks if a number is odd
  • (B) Checks if a number is even
  • (C) Always returns true
  • (D) Returns the same number
πŸ’¬ Discuss
βœ… Correct Answer: (B) Checks if a number is even

Explanation: This lambda checks whether a number is even.

Explanation by: Mr. Dubey
This lambda checks whether a number is even.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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