© 2023 Hashnode
#lambda-expression
Lambda Expressions: A lambda expression is a short block of code that can be passed around as a function to be executed later. It provides functional programming capabilities in Java. Stream API: The…
LamdaAnonymous Class On compilation, invokedynamic instruction is added to the class file.On compilation, for each anonymous class, a separate class file gets generated. Example: DemoClass$1.class …
Amazing possibilities with Streams Though I have been coding for a while with Java, I was recently wowed by the following possibility - to think of a file as a stream of lines and operate on each line…
Functional Interface(FI) refers to a special kind of interface, it's an interface with only one abstract method, that is, FI can have many other implemented methods, but only one abstract method. package com.sosv.functional.generic; public…
In the release of Java 8, the Lambda Expression was introduced. It's a technique for writing clear and succinct code. One of those concepts that people, especially novices, find challenging to underst…