Q. What is the purpose of method references in the context of lambdas?

  • (A) To create a new interface
  • (B) To refer to methods directly as a lambda alternative
  • (C) To override methods
  • (D) To convert lambdas to strings
πŸ’¬ Discuss
βœ… Correct Answer: (B) To refer to methods directly as a lambda alternative
Explanation: Method references allow referring to existing methods as lambdas.
Explanation by: Mr. Dubey
Method references allow referring to existing methods as lambdas.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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