
Answer two main questions: what is functional programming and how can we use it in Java by exploring lambda expressions, functional interfaces, and method references, including supplier, consumer, and function.
explains that lambda expressions form the base of functional programming in Java as anonymous functions with parameters, an arrow, and a body, with a string length example.
Take this quiz to test your understanding of lambda expression syntax in Java 8, including braces around parameters, semicolons, return usage with braces, variable naming, and required parameter types.
Explore method references as a concise alternative to lambda expressions, converting static and instance methods into functional interface implementations for simple calculator operations.
Explore using method references to replace complex lambdas in Java 8, distinguish static versus instance references, and apply constructor references via the supplier interface that returns an array.
Explore the key benefits of lambda expressions in Java 8, including code conciseness, readability, and maintainability. See how they enable functional style and parallel processing with streams.
Learn to use the consumer functional interface in java 8, which accepts a single input and returns void via accept, with practical for-each style examples.
Explore predicate and bi predicate usage in Java 8 to test conditions, filter lists, and remove empty strings, using the test method and two-parameter forms with string and length limits.
Review built-in Java functional interfaces such as supplier, consumer, predicate, and function to reinforce how they generate values, consume input, test conditions, and transform types.
This lecture introduces primitive functional interfaces in Java 8, including boolean and long suppliers, primitive consumers, predicates, functions, and binary operators.
Master lambda expressions by using functional interfaces to transform types, such as getting the length of a string with Function and converting doubles to ints with double-to-function via apply.
What others say about this course:
"A really great course touching on a subject that is severely undervalued or overlooked by a lot of developers: lambda expressions and pure functional programming.
I love the simple code examples discussed in this course that allow you to understand easily and fast the practical way of using lambda expressions and how they can enhance your software problem solving abilities.
Also enjoyed the positive and friendly vibe of the course overall. Personally, I highly recommend it!"
"Very nice structured, good English, good examples, easy to follow!"
Welcome to this course!
Why is this course different from others?
Because it is Simple, Practical and Complete - these are the basic ingredients for a successful learning.
You want to be able to fluently code using Lambda Expressions.
You want to learn everything there is to know about Functional Programming in Java - all the different syntax and visibility rules, all the various cases of Method References, all the new Built-In interfaces and many more.
You want to understand all these new concepts FAST and EASY.
You want to understand why learning these new features is WORTHWHILE.
You want to be able to teach others about Lambda Expressions - THIS is the sign that you yourself have achieved a deep comprehension about these concepts.
You want to do many practical examples and exercises - this facilitates learning and profound understanding of the new concepts
You want to finish the course and jump into code and realize you can already juggle with Lambdas without any problem.
ALL of these you will get from this course.
The main topics covered in this course are:
What is Functional Programming and what are its Benefits?
What are Lambda Expressions - learn the syntax and accessibility rules
What are the benefits of Lambda Expressions?
What are Functional Interfaces and how to use them in practice
Learn to use all types of Method References
Learn to use the Basic Built-in Functional Interfaces from Java
Learn to use the Primitive Functional Interfaces from Java
Make a comparison between Lambda Expressions and Anonymous Inner Classes
Practice, Practice, Practice - lots of examples, exercises and quizzes
“TELL ME AND I FORGET. TEACH ME AND I REMEMBER. INVOLVE ME AND I LEARN.” – BENJAMIN FRANKLIN