Java 8 – Functional Interfaces – Introduction

Hey there!

Welcome to ClearUrDoubt.com.

In this post, we will look at the introduction of Functional Interfaces and Lambda Expressions in Java 8.

One of the great updates in Java 8 is the addition of Lambda Expression support. Functional interfaces are initialized in a simple way using Lambda expressions.

A Functional interface is an interface which has one and only one method in it.

Let’s look at the simple program to generate a square/cube of a number using Functional Interface and LambdaExpression.

Output:

Happy Learning :).

Please let us know in case of any queries.

Leave a Reply

Your email address will not be published. Required fields are marked *