Java 8 Stream API

This tutorial will explain about Java’s new API called stream, which is introduced in Java 8 and included in package java.util.stream. The stream API supports functional-style operations on collection of elements or stream of elements in a collection. For example, you only…

Java Lambda Expressions

When implementation of anonymous class is very simple, for example, an interface contains only one method, then the syntax of anonymous classes may seem unclear. In these situations the functionality is passed as an argument to another method to perform an action,…