Functional Interfaces and Lambda Expressions in Java with Examples | Geekific

  Рет қаралды 11,194

Geekific

Geekific

Күн бұрын

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

Пікірлер: 15
@HappyWiesiek
@HappyWiesiek 7 ай бұрын
I, as a fan subscriber, call for pt. 2 - this content is literally the most informative, and as straightforward as no other (and I've been through shitloads of such). And it's not hinglish (of whom content I do not discard). Academics level of transferring knowledge whished for such quality you provide.
@RobertPodosek
@RobertPodosek 11 ай бұрын
This is gold. I love how you show how functional interfaces integrate with the streams API and enable it to work. It's all starting to click now. Excellent stuff.
@saintjonny
@saintjonny 3 ай бұрын
Thank you. I was stuck on lambda expressions for days.
@smikkelbeer7890
@smikkelbeer7890 Жыл бұрын
Better explained than my university lecturers could. Thanks.
@dennismasinde3030
@dennismasinde3030 Жыл бұрын
Glad I found your channel. Awesome content
@derryyeh
@derryyeh 2 жыл бұрын
Amazing content. Your explanation is pure magic and logical. This video explains everything I've been confused with Java Stream methods. Whenever I was using Java Stream API, those methods documentation pops up and I selected those functions and didn't understand the parameters it requires at all. Until now, I can understand! Thanks a million!
@geekific
@geekific 2 жыл бұрын
Wow! Thank YOU :) Glad it was helpful!!
@yajirobi4071
@yajirobi4071 Жыл бұрын
underrated channel
@user-ox1dl2bh1r
@user-ox1dl2bh1r 11 ай бұрын
this is really great content, your videos helps me deep my knowledge, thank you for that!
@tarknural5963
@tarknural5963 8 ай бұрын
amazing!
@MEGANE34
@MEGANE34 5 ай бұрын
Normally we can call static methot in methot reference but in here we can call without static methot in Function interface.how do you do that? Thanks
@ppdmartell
@ppdmartell 11 ай бұрын
@geekific what means the generic between default and the returning type? I mean, it is not the returning type. I asked chatgpt but was never able to make it clear.
@geekific
@geekific 11 ай бұрын
can you please specify a timestamp for your question?
@ppdmartell
@ppdmartell 11 ай бұрын
@@geekific My bad, it's 3:41. By then I haven't recognized it was a generic method and if you don't specify the type parameter the compiler would complain. Thanks for always try to keep track of new questions.
@Fun9to5
@Fun9to5 Ай бұрын
I never liked these lambdas and functional interfaces... Yes the code is shorter but it's difficult to read.
Java :: Function vs Supplier vs Consumer :: Functional Programming
10:20
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 14 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 13 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 138 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 711 М.
Java 8 to 18: Most important changes in the Java Platform
31:24
Stream API in Java
26:04
Telusko
Рет қаралды 282 М.