Articles, Home

Java 8 Collectors Class with Examples

Collectors is a final class that extends Object class. It provides reduction operations, such as accumulating elements into collections, summarizing elements according to various criteria, etc.Implementations of Collector interface that implement various useful reduction operations, such as accumulating elements into collections, summarizing elements according to various criteria, etc.

Articles, Home

Spring Boot + Angular 8 CRUD Example Tutorial

In this tutorial, we will learn how to develop a CRUD (Create, Read, Update, Delete) Web Application using Angular 8 as a front-end and Spring boot 2 restful API as a backend.If you are looking for Angular 6 with spring boot 2 integration example then check out Spring Boot + Angular 6 CRUD Example article.If you are looking for Angular 7 with spring boot 2 integration example then check out Spring Boot 2 + Angular 7 CRUD Example article.You can download the source code of this tutorial from my GitHub repository at the end of this tutorial.

Articles, Home

Java 8 Functional Interfaces

In this post, we will learn the Java 8 the functional interface with examples.Key points about the functional interface:An Interface that contains exactly one abstract method is known as a functional interface.It can have any number of default, static methods but can contain only one abstract method. It can also declare methods of the object class.Functional Interface is also known as Single Abstract Method Interfaces or SAM Interfaces. It is a new feature in Java 8, which helps to achieve a functional programming approach.A functional interface can extend another interface only when it does not have any abstract method.The Java API has many one-method interfaces such as Runnable, Callable, Comparator, ActionListener, and others. They can be implemented and instantiated using anonymous class syntax.

Articles, Home

Java 8 Stream Examples

Java provides a new additional package in Java 8 called java.util.stream. This package consists of classes, interfaces and enum to allows functional-style operations on the elements. You can use stream by importing java.util.stream package in your programs.