Mar 5, 2018

Lambda expressions address the bulkiness of anonymous inner classes by expressing the machinery of anonymous inner classes more compactly.

The general syntax of a lambda expression consists of a set of parameters, an arrow token, and a function body (either a single expression or a statement block):

(int a, int b) -> a * a + b * b;

Post a Comment

Featured Post

An Uber self-driving car hit and killed a woman crossing the street in Arizona

The first fatality caused by an autonomous vehicle and a potential blow to the technology expected to transform transportation.