Objectives of Java 8
- To simplify programming: Concise code
- To gain the benefits of functional programming in java (Lamada Expression)
- To utilize the advantage of parallel processing in java(Parallel streams)
Features of Java 8
- Functional Interfaces
- Lambda Expressions
- Passing functions as parameters or returning a function
- Types of Functional Interfaces
- Predicate (Predefined functional interfaces)
- Function (Predefined functional interfaces)
- Consumer (Predefined functional interfaces)
- Supplier
- Method reference and Constructor reference by double colon(::)operator
- Stream API
- Interface
- Default Method in interfaces
- Static method inside interfaces
- Java 8 Date and Time API( Joda API)