Java Tutorials

Lambda Expressions in Java 8

Java 8 brought a game-changing feature to the world of programming: lambda expressions. These concise and expressive constructs revolutionized the […] Continue reading »

Java 8 Default and Static Methods in Interfaces

Java 8 brought a significant enhancement to interfaces by introducing default and static methods. These additions allowed developers to evolve […] Continue reading »

Java 8 Stream generate() Method

In this article, we will explore the generate() method provided by Java 8 Stream API. The generate() method is a […] Continue reading »

Java Records: Simplify Data Classes

The record keyword was introduced in Java 16. It is a feature that simplifies the creation of classes for data […] Continue reading »

Java 8 Collectors.groupingBy() Method Example

In this blog post, we will explore the Collectors.groupingBy() method, a valuable tool for grouping elements in a stream based […] Continue reading »

Find nth Largest elements from Integer List using Java Stream

To find the nth highest elements from an integer list using Java 8 Stream API, you can follow these steps: […] Continue reading »

Java 8 – Find Non Duplicate Elements from List

In Java 8, you can use the Stream API and lambda expression features to find the non-duplicates element from a […] Continue reading »

Java ReentrantLock Example

In Java, ReentrantLock is a synchronization mechanism provided by the java.util.concurrent.locks package. It is an implementation of the Lock interface […] Continue reading »

Java 8- Find the nth Highest Salary

In this short article, you will learn how to find the nth highest salary of an employee using Java Streams […] Continue reading »

Java Collections.min() and Collections.max() Methods

In this article, we will explore min() and max() methods of the Collections utility class. In Java, the Collections class […] Continue reading »

Method Reference in Java 8

In Java, method reference is a feature introduced in Java 8 that allows you to refer to a method by […] Continue reading »

1 2 3 4 5 13