Functional Programming With Java: What’s in the Box
In the previous part, we learned about Java’s functional capabilities. This time, we’ll go over the functional interfaces which are included in the JDK since Java 8’s introduction of lambdas.
In the previous part, we learned about Java’s functional capabilities. This time, we’ll go over the functional interfaces which are included in the JDK since Java 8’s introduction of lambdas.
Java was designed as a general-purpose programming language with class-based object-orientation at its core. With the release of version 8 in 2014, a more functional programming style became viable. This story tries to shed some light on the depth of functional programming possible.
With Java 8 came one of the greatest additions to Java: the Stream API. It made processing a stream of data very convenient by allowing us to chain operations together, lazily, and perform the actual data processing by ending a fluent call with a terminal operation.