Skip to content

Tag Archives: java-lambda

Lambda Expressions are anonymous functions. These functions do not need a name or a class to be used. Lambda expressions are added in Java 8.… Read More
One of the most popular and important topics is lambda expression in java but before going straight into our discussion, let us have insight into… Read More
Variable defined by the enclosing scope of a lambda expression are accessible within the lambda expression. For example,  a lambda expression can use an instance… Read More
Here we will be discussing serialization in java and the problems related to the lambda function without the serialization alongside discussing some ways due to… Read More
Lambda expression is an unnamed method that is not executed on its own. These expressions cause anonymous class.  These lambda expressions are called closures. Lambda’s… Read More
A lambda expression is one or more line of code which works like function or method. It takes a parameter and returns the value. Lambda… Read More
Prerequisites: Functional Interfaces in Java, Lambda Function A method is a collection of statements that perform some specific task and return the result to the… Read More
Given a string, the task is to write a Java program to check whether the string contains only alphabets or not. If so, then print… Read More
A method is a collection of statements that perform some specific task and return the result to the caller. A method can perform some specific… Read More
Prerequisite: ArrayList in Java Given an ArrayList, the task is to remove repeated elements of the ArrayList in Java. Examples: Input: ArrayList = [1, 2,… Read More
Given a String, the task is to check whether a string contains only alphabets or not. Examples: Input : GeeksforGeeks Output : True Input :… Read More
Below are the methods to efficiently remove elements from a List satisfying a Predicate condition:  p ==> Predicate, specifying the condition l ==> List, from… Read More
In this article Lambda Expression with Collections are discussed with examples of sorting different collections like ArrayList, TreeSet, TreeMap, etc. Sorting Collections with Comparator (or… Read More
Lambda expressions basically express instances of functional interfaces (An interface with single abstract method is called functional interface. An example is java.lang.Runnable). lambda expressions implement… Read More