Collectors is a final class that extends the Object class. In this tutorial we will see the examples of Java Stream collectors class using lambda… [Read More]
Java 8 forEach method with example
In Java 8, we have a newly introduced forEach method to iterate over collections and Streams in Java. In this guide, we will learn how… [Read More]
Java 8 – Filter a Map by keys and values
In the previous tutorial we learned about Java Stream Filter. In this guide, we will see how to use Stream filter() method to filter a… [Read More]
Java 8 – Filter null values from a Stream
In this tutorial, we will see how to filter the null values from a Stream in Java. Example: A stream with null values In this… [Read More]
Java 8 Stream Filter with examples
In the previous tutorial, we learned about Java Stream. I would recommend you to read that guide before going through this tutorial. In this guide,… [Read More]
Java 8 Stream Tutorial
In the previous tutorial we learned the interface changes in java 8. In this guide, we will discuss Stream API which is another new feature… [Read More]
Java 8 Interface Changes – default method and static method
Prior to java 8, interface in java can only have abstract methods. All the methods of interfaces are public & abstract by default. Java 8… [Read More]
Java Functional Interfaces
An interface with only single abstract method is called functional interface. You can either use the predefined functional interface provided by Java or create your… [Read More]
Method References in Java 8
In the previous tutorial we learned lambda expressions in Java 8. Here we will discuss another new feature of java 8, method reference. Method reference… [Read More]
Java Lambda Expressions Tutorial with examples
Lambda expression is a new feature which is introduced in Java 8. A lambda expression is an anonymous function. A function that doesn’t have a… [Read More]