Java 8 – Function

Functions are re-useable pieces of code . Let us take an example from mathematics : f(x)=x2 +2 . When we assign a value to x , say, 1 we substitute x with 1 and return the result as 3. In…

Functions are re-useable pieces of code . Let us take an example from mathematics : f(x)=x2 +2 . When we assign a value to x , say, 1 we substitute x with 1 and return the result as 3. In…

A secret recipe to spice up your java program Ever wonder where we can use the predicates ? I was writing a piece of logic which involved classifying data into three groups based on three variables . The code looked…

Null values and null pointer exceptions are like mosquitoes , hard to control and hated by everyone . It is a sin to use null for the purpose of error handling. Instead we must use Exceptions which are specially made…

Streams are one of the most powerful features of Java 8 which has changed the way we write java programs/process What are streams ?As per official docs , Stream API provides class with which we can support functional-style operations like…