Search This Blog

Sunday, June 1, 2025

Java History - Lambda Expressions

 Java Lambda expression is a short piece of code that takes parameters and returns a value like a function. A lambda is an anonymous function. Lambdas are implemented in the code. 

Java introduced lambda expressions to bring the concept of functional programming.

A simple Lambda code to add two numbers and return the sum will look like this:

(x+y)  -> x+y

Which version of Java implemented Lambdas?

a) version 7

b) version 8

c) version 9

d) version 11


Created by Nancy N

@10:57 01-Jun-2025

3 comments: