Java Lambda

Here's a short example:

LambdaMethodInterface i = (acc, x) -> acc + x;

In the JVM, this creates an anonymous instance of the associated FunctionalInterface

package jdk8;
@java.lang.FunctionalInterface
interface LambdaMethodInterface
{
int sum(int acc, int x);
}