Рет қаралды 11,194
Support us on Patreon: / geekific
GitHub Repository: github.com/geekific-official/...
Stay updated on our videos by subscribing to the channel and hitting the like button!
Java 8 brought a ton of new features with it. One of these features is a powerful new syntactic improvement in the form of lambda expressions. A lambda, is an anonymous function defined at the level of special interfaces. These interfaces are what we call functional interfaces. In this video, we dive in the most important functional interfaces provided by Java, and come up with multiple examples for each of them.
Timestamps:
00:00 Introduction
02:00 The Function Interface
03:29 The "andThen" default method
04:19 The "compose" default method
04:45 Specialized Function Interfaces
05:54 The BiFunction Interface
07:33 The Predicate Interface
09:53 The Supplier and Consumer Interfaces
12:36 Operators
14:40 Creating your own Functional Interface
14:57 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Must Know Java Keywords!: • Must Know Java Keyword...
- Time and Space Complexity Simplified (Big-O Notation): • Introduction to Big-O ...
- Stacks Explained and Implemented in Java: • Stacks: Explained and ...
- Queues Explained and Implemented in Java: • Queues Explained and I...
- Java Stream API Explained with Examples: • Java Stream API Explai...
- Object-Oriented Programming Fundamentals: • What is Object-Oriente...
#Geekific #FunctionalInterfaces #Streams #Java #CleanCode