Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.57 KB

File metadata and controls

26 lines (15 loc) · 1.57 KB

Java-8-features

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.

Optional

stream API

lambda expressions

Functional interfaces Refer here