Book Image

Hands-On Functional Programming with Java [Video]

By : Hristijan Stojkoski
5 (1)
Book Image

Hands-On Functional Programming with Java [Video]

5 (1)
By: Hristijan Stojkoski

Overview of this book

Functional programming, a popular programming paradigm used to simplify many tasks, will help you write flexible and succinct code. This paradigm makes programs easier to reason with because they're deterministic (one specific input will always give you the same output). This course takes a thought-leadership approach, gently introduces you to Functional Programming, and takes you all the way to becoming a master of the paradigm. You'll then learn how to work with higher-order functions, lambda functions, collections and more. You'll learn how to apply the best data structures and algorithms that optimize functions and also how to reuse and refactor functional blocks of code. This course is updated to Java 12 so that you will be ahead of the crowd. By the end of the course, you will have mastered the concepts regarding functional programming along with OOP, to build robust and highly testable applications. The code files for this course are available at - https://github.com/PacktPublishing/Hands-On-Functional-Programming-with-Java
Table of Contents (6 chapters)
Chapter 2
Working with Lambda Expressions
Content Locked
Section 2
Replacing Anonymous Classes
Explore why anonymous classes should be replaced, and how to effectively do it. - Explore an example code that makes a greeting in various languages - Implement lambda expressions to do the job - Use anonymous class as a parameter and implement the same feature using a lambda expression