Java 101: Functional programming for Java developers, Part 1

See the original posting on JavaWorld

Java 8 introduced Java developers to functional programming with lambda expressions. This Java release effectively notified developers that it’s no longer sufficient to think about Java programming only from the imperative, object-oriented perspective. A Java developer must also be able to think and code using the declarative functional paradigm.

This tutorial presents the basics of functional programming. I’ll start with terminology, then we’ll dig into functional programming concepts. I will conclude by introducing you to five functional programming techniques. Code examples in these sections will get you started with pure functions, higher-order functions, lazy evaluation, closures, and currying.

To read this article in full, please click here