Java/JavaConcept/Java8.md at master · QichenJing/Java · GitHub
Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 446 Bytes

File metadata and controls

12 lines (7 loc) · 446 Bytes

Java 8 New Language Features

Default Methods for Interfaces

Java 8 enables us to add non-abstract method implementations to interfaces by utilizing the default keyword. This feature is also known as Extension Methods. Concrete classes only have to implement the abstract method, the default method can be used out of box.

Lambda expressions

Function Interfaces

https://winterbe.com/posts/2014/03/16/java-8-tutorial/