Q. Method references can replace lambdas when:

  • (A) Lambda only calls a method
  • (B) Lambda has multiple statements
  • (C) Lambda throws an exception
  • (D) Lambda modifies external variables
πŸ’¬ Discuss
βœ… Correct Answer: (A) Lambda only calls a method
Explanation: They replace lambdas that just call a method.
Explanation by: Mr. Dubey
They replace lambdas that just call a method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate