0 votes
in JAVA by

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

1 Answer

0 votes
by
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.

Related questions

0 votes
0 votes
asked Apr 13, 2023 in JAVA by Robin
0 votes
asked Mar 15, 2023 in Amazon Elastic Compute Cloud EC2 by rajeshsharma
...