Another awesome video. Can you please continue making more videos even if they are not that frequent. If I have to learn any new concept, your channel is the first place I visit. Thank you so much for the contribution.
Now that is called exams of functional interfaces with practical usages.... I was searching in long videos on other channels for same but didn't know I will find it in such a short video.... thanks a lot.... keep doing good work
Thanks a lot Deepak, The way you present & explain the concepts are really Amazing !!! My gratitude towards the knowledge that you have share across all the videos.
Excellent video. An additional info - we use predicte as a parameter in stream.filter(...) as well. filter is something that we use quite often for operations on a Collection
Wonderfully explained. This video has got everything one needs to know about Functional interface. Plz correct me if I am wrong, there are interfaces in java which are not annotated with @FunctionalInterface though but can still be used as functional interfaces with lambda expression e.g Executor.
Correct. Functional interface does not modify behavior of the class, it's just a marker for using developers to understand it's purpose. Thus an appropriate interface can be used without annotation.
Nice explanation ✌️..So can we say 1. functional interface concept is introduced in Java 8 so that we can use lambda expression. 2. Lambda expression is introduced to minimize the code. As we know that the interfaces having only one abstract method, we have to write separate class or write anonymous class to implement the same. Would be grateful for your reply🙏
Please make a series on JVM memory model and how and where static, instance methods, objects, Strings are stored in Java 9 and above. Awesome content :)
Just to add, at 4:30, infact the lambda expression [ ( u1, u2 ) - > u1.getId().compareTo( u2.getId() ) ] can be assigned to any functional interface that is of Type , accepts two parameteres in its method declaration and returns an integer.
Thanks Defog! Have been following the channel for multi threading concepts as well. Great explanations. I noticed that you're referring to presentations in all the videos. Would it be a possible to share them? Would be great to revise.
Nice video! One question - At 6:17 when we are writing the lambada representation, how does the compiler know that its Predicate Functional interface and not some other type of Functional Interface?
Because removeIf method in the list class only takes predicate, do compiler will check is lambda taking a value T and returning a Boolean.. then yes it's predicate.. and will be allowed. Even if developer wrote code thinking of different interface, if it matches the expected interface it will be allowed
So there are these 4 types of functional interfaces in Java, and everytime u code a lambda function, the compiler checks which one of these four interfaces match the given lambda function? Did I get this right?
Think more of it as, you pass lambda to a function.. that function definition has a parameter of some type (supplier, acceptor etc).. compiler will ensure lambda passed is of that exact type
Excellent explanation. I just don't understand why do you call Comparator anonymous inner class. I believe it's simply an anonymous class, nothing else
@@DefogTech Actually I had an interview today, and the guy who took it was sounding very much familiar with your voice, and interested thing was, his all questions were completely based on your video, i means the examples he was referring were totally same as yours. (Might be he is a regular viewer of your video). By the way your explanation is stupendously and amazing. Keep posting brother.
You start all your content straight from 0:01, no chatter, no use less intro, no drama. Love it. You are the BEST!
Nowhere I found such a nice explanation of lambda functions. Thank you for your efforts .
You are the best in explaining java concepts... Brilliant.. . Fabulous..
I read a lot of articles on the functional interfaces and then watched this video. This summarizes everything.
this is how anyone should explain functional interface and lambda. You won't believe I'm confused since day 1. Now all is clear.
Another awesome video. Can you please continue making more videos even if they are not that frequent. If I have to learn any new concept, your channel is the first place I visit. Thank you so much for the contribution.
Best explanation of Functional Interfaces I've seen on here
Now that is called exams of functional interfaces with practical usages.... I was searching in long videos on other channels for same but didn't know I will find it in such a short video.... thanks a lot.... keep doing good work
Right kind of voice for the kind of subject..
Thanks a lot Deepak, The way you present & explain the concepts are really Amazing !!! My gratitude towards the knowledge that you have share across all the videos.
It's very concise explanation of java lamda! Thanks a lot.
Very clean and straightforward content.
I really don’t know how to thank you for such a great videos , so many things I am learning for you. Please do accept my thanks and kind gratitude 🙏🙏
Thanks so much for your kind words!
Very clear, direct to the point, with not much jargon, Thanks!
Awesome I came here for functional interfaces and learnt some basics about lambda also. you categorized the use of lambda also . Thanks
Excellent video.
An additional info - we use predicte as a parameter in stream.filter(...) as well.
filter is something that we use quite often for operations on a Collection
javarevisitt.blogspot.com/2020/05/functional-interface.html?m=1
You definitely Defog our mind
Very nicely explained and that too to the point..thank you
Wonderfully explained. This video has got everything one needs to know about Functional interface. Plz correct me if I am wrong, there are interfaces in java which are not annotated with @FunctionalInterface though but can still be used as functional interfaces with lambda expression e.g Executor.
Correct. Functional interface does not modify behavior of the class, it's just a marker for using developers to understand it's purpose. Thus an appropriate interface can be used without annotation.
@@DefogTech Thanks for your prompt response.
Well narrated.. very useful.
Great explanation of lambda. Thank you.
Awesome ,Straight to the content,Great explanation with examples.
Very clear explanation, thanks a lot
Nice explanation ✌️..So can we say
1. functional interface concept is introduced in Java 8 so that we can use lambda expression.
2. Lambda expression is introduced to minimize the code. As we know that the interfaces having only one abstract method, we have to write separate class or write anonymous class to implement the same.
Would be grateful for your reply🙏
Correct for both points
A clear explanation of an important concept. Thanks.
Please make a series on JVM memory model and how and where static, instance methods, objects, Strings are stored in Java 9 and above. Awesome content :)
Really good and clear explanation. Please keep it up, Sir!
You are such a good mentor ,love you bro
Just to add, at 4:30, infact the lambda expression [ ( u1, u2 ) - > u1.getId().compareTo( u2.getId() ) ] can be assigned to any functional interface that is of Type , accepts two parameteres in its method declaration and returns an integer.
ya i was wondering if that was possible or not
Excellent video to understand functional interfaces in java 8. Thanks a lot!
Very good explanation
Really nice explanation
Just Awesome explanation hats off.
Very clearly explained
Ok this was seriously well done.
Thanks man :) clear and straight to the point.
Awesome video!, please continue to make new videos
you sound like Arnab goswami but made it short and to the point as per my expectations
Thanks!
amazing video. thank you very much
Thanks Defog! Have been following the channel for multi threading concepts as well. Great explanations.
I noticed that you're referring to presentations in all the videos. Would it be a possible to share them? Would be great to revise.
Really threading concepts are awesome in u r channel....
Very nice explanation!!
Amazing explanation. Thank you!
Thank you! Great explanation and examples to help defog FIs
Excellent Video.
I am really enjoying ur videos
thanks pal, what software are you using to create the slides?, greetings from Ecuador
I use Google Slides and Macbook inbuilt screen recorder
Great Video. Waiting for More videos on Functional Interfaces in Java8 :)
Nice tutorials bro
awesome 👍👍
clean and right. Thank you!!!!
Again, great explanation.
what the...this is awesome!
You are the best
Please make a video on Generics
This was so beautiful.
Please make a playlist on Operating Systems
Nice video!
One question - At 6:17 when we are writing the lambada representation, how does the compiler know that its Predicate Functional interface and not some other type of Functional Interface?
Because removeIf method in the list class only takes predicate, do compiler will check is lambda taking a value T and returning a Boolean.. then yes it's predicate.. and will be allowed. Even if developer wrote code thinking of different interface, if it matches the expected interface it will be allowed
@@DefogTech I see. Thank you.
And thanks for such a prompt response 😊
Great explanation! Thank you.
You're welcome!
You deserve lot more subscribers. :thumbsup:
thank you
please continue making these series of videos quicker
Yes sir.. plan is to create 2 videos a week now, and based on response will increase further
So there are these 4 types of functional interfaces in Java, and everytime u code a lambda function, the compiler checks which one of these four interfaces match the given lambda function? Did I get this right?
Think more of it as, you pass lambda to a function.. that function definition has a parameter of some type (supplier, acceptor etc).. compiler will ensure lambda passed is of that exact type
Great explanation about FI and Lambda. One question: As we know whenever we can use @Anonymous class, we can apply a lambda. Is it also true for FI?
Correct. Any FI can be used as Lambda
Excellent explanation.
I just don't understand why do you call Comparator anonymous inner class. I believe it's simply an anonymous class, nothing else
Thanks @Defog tech
You're welcome!
Why only one abstract method in functional interface??
Yes!
Best
Do you work in S&P gurgaon ?
Nope, I am based out of Mumbai
@@DefogTech Actually I had an interview today, and the guy who took it was sounding very much familiar with your voice, and interested thing was, his all questions were completely based on your video, i means the examples he was referring were totally same as yours. (Might be he is a regular viewer of your video). By the way your explanation is stupendously and amazing. Keep posting brother.
Thanks a lot buddy! Thats a very interesting thing.. I hope your interview went well. Good luck :)
Great!!
crisp...