(params) -> statement

Let's create and run some Runnable! With Java 8, instead of using anonymous classes, we can useThe syntaxis used to create an instance of Runnable by implementing its run method.This is possible only for interfaces that have only one abstract method, and such interfaces are calledWait, aren't all interface methods abstract? Not anymore. See Defender (Default) methods.