πŸ“Š JAVA
Q. What is a lambda expression in Java 8?
  • (A) A new type of class
  • (B) A shorthand way of creating an anonymous function
  • (C) A special type of method that can only be called once
  • (D) A way to create a singleton object
πŸ’¬ Discuss
βœ… Correct Answer: (B) A shorthand way of creating an anonymous function

Explanation: A lambda expression is a concise way to represent an anonymous function that can be passed around as a value.

Explanation by: Pushkar
A lambda expression is a concise way to represent an anonymous function that can be passed around as a value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
241
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pushkar
Publisher
πŸ“ˆ
99%
Success Rate