Java, Software development

Generic Functional Interfaces and Functional Interface API for Lambda Expressions: Java 8

Lambda expressions come with a standard rule that they can only be assigned to a reference variable which is a Functional Interface i.e. an interface having one and only one abstract method. Besides, a Lambda expression does not care about the name of a function and/ or any access specifier as it tries to infer this information from the...

by Vinay Prajapati
Tag: functional programming
07-Jun-2017

Java, Software development

Functional Interface for Lambda expressions : Java 8

As we already know that Lambda Expressions are used to support functional programming in Java. The default behaviour of Lambda expressions is to accept only those interfaces as reference variables which have only one abstract method. We call such interfaces Functional Interfaces. You could also name them as SAM, i.e., Single Abstract...

by Vinay Prajapati
Tag: functional programming
01-Jun-2017

Java, Software development

Functional Programming in Java8 Using Lambda Expressions

Lambda expressions are the most talked feature of Java 8. Lambda expressions drastically change the way we write the code in Java 8 as compared to what we used to, in older versions.  Let' understand what lambda expression is and how it works. At first, you could think about lambda expressions as a way of supporting functional...

by Vinay Prajapati
Tag: functional programming
15-May-2017