Quick Overview of Java 8 Features Some of the important Java 8 features are;
- forEach() method in Iterable interface
- default and static methods in Interfaces
- Functional Interfaces and Lambda Expressions
- Java Stream API for Bulk Data Operations on Collections
- Java Time API
- Collection API improvements
- Concurrency API improvements
- Java IO improvements
@FunactionalInterface indicates that an interface has only 1 abstract method . It is not mandatory to use this annotation , but just to avoid accidental addition of other methods .
default and static methods in Interfaces are allowed in JDK8
forEach() method in Iterable interface - wrote a program to create new set
Java Stream API for Bulk Data Operations on Collections - write a program for implementing it
No comments:
Post a Comment