Intermediate Java
Q49 / 100

What is a lambda expression in Java 8+?

Correct! Well done.

Incorrect.

The correct answer is B) A shorthand for implementing a functional interface with a concise anonymous function

B

Correct Answer

A shorthand for implementing a functional interface with a concise anonymous function

Explanation

Lambda expressions (e.g., (x) -> x * 2) provide a concise way to implement functional interfaces, enabling functional programming patterns.

Progress
49/100