Some of the most interesting new features in Java 8 are,
Interface
Method References Method reference can be used as a shorter and more readable alternative for a lambda expression which only calls an existing method. There are four variants of method references. It can be used to refer method of functional interface.Lambda expression can be replaced with method reference.When your lambda expression is referring to another method,in this case method reference can be used.
- Reference to a Static Method
- Reference to an Instance Method
- Reference to an Instance Method of an Object of a Particular Type
- Reference to a Constructor
Optional
stream API
lambda expressions
Functional interfaces Refer here