1
JavaIntermediate#java8
Concise syntax for implementing functional interfaces (single abstract method). Example: (a, b) -> a + b. Enables functional programming style and is heavily used with Streams and the Collections API.
Comparator<String> byLength = (a, b) -> a.length() - b.length();
Runnable r = () -> System.out.println("running");