Category: Java 8

Java 8 – Stream

The Java Stream API adds a new abstraction called Stream that lets you process data in a declarative way. The Java Stream API can greatly increase the productivity of Java programmers, allowing programmers to write efficient, clean, and concise code. This style treats the set of elements to be treated as a stream, which is…

By ravi24kant December 31, 2018 Off

Java 8 – Default Methods

In the previous post we’ve seen functional Interface & Lambda Expressions. during this post we are going to see another java 8 new feature “Default Methods” in interfaces. Before Java 8, the interface solely contains method signatures. With Java 8 new feature Default methods you’ll be able to include method body inside the interface. Lets…

By ravi24kant December 17, 2018 Off

Java 8 – Lambda Expressions

In this post, I’ll cover lambda expression Java and ideas around it in 3 parts. Below is out arrange to act. What’s a lambda expression in Java? Java 8 functional interface Lambda expression examples Let’s continue the setup and move step by step. What’s a lambda expression in Java? In programming, a Lambda function is…

By ravi24kant November 14, 2018 Off

Java 8 – Functional Interface

A functional interface is an interface with only 1 abstract method. this suggests that the interface implementation can only represent one behaviour. samples of a functional interface in Java are: java.util.Comparator java.lang.Runnable java.util.concurrent.Callable java.io.FileFilter An important purpose to remember is that the functional interface can have a variety of default methods however only 1 abstract…

By ravi24kant November 14, 2018 Off

Java 8 – Features

This Java tutorial list down necessary Java 8 features with examples that were introduced during this release. All options have links to elaborate tutorials like lambda expressions, Java streams, functional interfaces and date time API changes. Java SE 8 was released in early 2014. In java 8, most talked concerning feature was lambda expressions. it’s several alternative necessary features as well like default methods, stream API and new date/time API. Let’s find out about these new options in java 8 with examples. Functional Interface Functional interfaces are known as Single Abstract method interfaces…

By ravi24kant October 29, 2018 Off