Java, Technology

Type Inference in Lambda Expressions : Java 8

Type Inference means that the data type of any expression (e.g. method return type or parameter type) can be deduced automatically by the compiler. Groovy language is a good example of programming languages supporting Type Inference. Similarly, Java 8 Lambda expressions also support Type inference. Let's understand how it works with a...

by Vinay Prajapati
Tag: lambda expressions
07-Jun-2017

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: lambda expressions
07-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: lambda expressions
15-May-2017