Category: Java 8

Features of Java 8

Streams

1.Overview Streams are introduced in Java in Stream API to handle the operations on the list of elements in functional programming approach. Using Streams we can do multiple operations on the list...

forEach Expression

Starting Java 8, a new method forEach is introduced to iterate the elements. This forEach(Consumer<? super T> action) method is created in the following interfaces in java. java.lang.Iterable java.util.Stream This method performs a user given action...

Lambda Expressions

Lambda expression is a Java 8 feature, which helps the developer to simplify syntax of anonymous interface implementation whenever required. Interface is defined anonymously in earlier Java Implementation in the below old...