Skip to content

Java Streams API

35 Posts

What Is a Predicate Interface In Java?

What is the Predicate interface in Java? Learn this built-in functional interface: how it tests a value, returns a boolean and works with lambda expressions.

What is a Function Interface In Java?

Learn the Java Function interface, the third built-in functional interface in this course: what it takes, what it returns and how to use it with lambdas.

What is a Supplier Interface in Java?

Learn the Java Supplier interface, the second built-in functional interface in this course: why it takes no input, what it returns and how to use it.

Different Ways To Create Stream Objects

Learn the different ways to create stream objects in Java, with practical examples for collections, arrays and more, so you can start using the Streams API.

What Are Sequential And Parallel Streams

Learn the two modes of Java streams, sequential and parallel: how they differ, with examples showing when each mode is the right choice for your code.

Reference to Static Method (Method References)

Learn the first kind of Java method reference, a reference to a static method: its syntax, how it replaces a lambda and practical examples of when to use it.

Kinds Of Method References

Learn the different kinds of method references in Java and their syntax: an introduction to each form before you use them in your own lambda-style code.