Java 8 is a major release that brought functional programming, lambda expressions, and Stream API to the language.It makes Java more concise, expressive, and performant.
LAMBDA EXPRESSIONS
Enables writing anonymous methodsGreat for functional interfacesBoosts code brevity
(int a, int b) -> a + b
FUNCTIONAL INTERFACES
A functional interface has exactly one abstract method.Used in lambda expressions and streams.