I think lambda expressions are more appropriately used as a substitute of one-liner methods. Because we have also used lambda expressionys in abstract classes or inside a container class. And its usually used to express what a method expresses in one line. And that is what I got from the video as well. I may be wrong. 😄
In just one video I have understood anonymous inner class,boiler plate code, lamda expression. Earlier I have a confusion on these topics. Great explanation Thank you.
Wah !.. what an explanation Sir, I became a FAN of you :) I am confusing these lambda expressions from last 1 year. you cleared it in just 10min.. biggest thanks
I skimmed through many videos and your video is best by far. GREAT way of explaining and definitely you have great understanding of what you are working with. THANK YOU
You are the best. really ! , you somehow find a way to make everything simple and understandable . i'm going to take the OCA exam next week and lambda expressions was a new topic for me that i need to study for the exam , you really helped making the topic easier for me . Thank you :D !
Thanks you sir for all those videos.. Sir all the videos are helpful to know how to work but please tell us when to use with some bigger used case example
Hi..Its a great VDO.I do have one question.what if we have two undefined function in interface.In that case how we are going to use Lambda expression.Please help me to clear my doubt .Thanks
You can only have one method inside a functional interface. if you have more it would not be functional interface and therefore lambda will not be able to be used in this way.
Thanks for this wonderful video. May gbu with lots of success love and life. Keep Rocking... Small suggestion::Please do add the source code so that later we can use that to revise and make notes please
Wow, you did a great help. This thing was really hard before watching this video. "One doubt though. Can we use lambda if there are more than one method in the interface?*
Great work,thanks, if interface has more than one method, how java 8 handle in lamba expression. suppose if class implement more than one interface like interface1->show1 and interface1->show2, how we will define in lamda expression
Hi Naveen, Thanks for the video. It was a nice explanation. Can you please tell me why the implementing methods of an interface through lambda expressions should have the access modifier as "public" only??
i have a question here. With lambda expression you are providing implementation for method show() of Interface A in the place where you want to use it (here in main() method). Suppose we implement Interface A in other class, again you need to define implementation for method show() in that new class if you are using lambda expression, so are we not writing duplicate code in every class that implements Interface A when we have same implementation logic ?? If we have a class as XYZ in your example which provides implementation for show() method, then wherever we want to use the implementation of the method show(), we can create object of class XYZ and call the show() method, we need not write implementation logic in this case. Can we get the same support with lambda expression ? without creating a new class XYZ ?
OK, so lambda expressions are a way to implement interfaces without making a new class. Finally I get it. Thanks!
I think lambda expressions are more appropriately used as a substitute of one-liner methods. Because we have also used lambda expressionys in abstract classes or inside a container class. And its usually used to express what a method expresses in one line. And that is what I got from the video as well. I may be wrong. 😄
thank you very much. just to add, lambda expressions only work with interface implementing only 1 method which is called a functional interface.
Thanks. I came to the comments to ask exactly about this.
That question was lingering in the back of my mind for the whole video. Thanks.
great help. thanks for this ans.
@@mrscripp7091 same here
@@mrscripp7091 Same bro!
Perfectly explained sir! with the files examples too, showing what happens in the background.
In just one video
I have understood anonymous inner class,boiler plate code, lamda expression.
Earlier I have a confusion on these topics.
Great explanation
Thank you.
The best explanation of lambda expressions that I've come across.
Thank you.
Wah !.. what an explanation Sir, I became a FAN of you :) I am confusing these lambda expressions from last 1 year. you cleared it in just 10min.. biggest thanks
I skimmed through many videos and your video is best by far. GREAT way of explaining and definitely you have great understanding of what you are working with.
THANK YOU
Always found lambda confusing , after this video it's crystal clear .. thanks for explaining with example .. really helpful
Perfect explanation, thank you very much. Love your step by step guide from traditional java to java 8 style. Thanks.
Thank you very much, I wouldn't understand how lambda works until I saw this. Cannot stop thanking you.
You are the best. really ! , you somehow find a way to make everything simple and understandable .
i'm going to take the OCA exam next week and lambda expressions was a new topic for me that i need to study for the exam , you really helped making the topic easier for me .
Thank you :D !
This can’t be explained better than the way you did sir…phenomenal👌
Amazing is the only word. demystified Lambda. Thankyou.
Sir you are a genius. Lambda expression was getting on my nerves but now I have a better understanding.
Best description in 10 mins
Far better , not better far best than the 30 mins videos
It's a clear explanation with a good example. You sir, should make educational videos about programming, you would do a good job...
excellent explanation from lambda exp to consumer interface.. great.. Thanks Navin
Thanks you sir for all those videos..
Sir all the videos are helpful to know how to work but please tell us when to use with some bigger used case example
Simplest & best explanation to lambda expression. Thanks for this video.
Its just the best video available in the market! great work.
for(int i=0; i
// This is better
while(true){
System.out.println("THANKYOU SO MUCH SIR ");
}
() -> sys.out("Thanks");
at first l was like: CAN U JUST GET TO THE POINT! but then it surprised me how that worked out
Very nice and to the point explanation.
I don't think any one will unlike it.
Great Explanation Mr.Naveen . Thank you.
Thank u very much sir...understood this lamba concept in a very clear way...
Amazing, you did the post-mortem of lambda expression, very nice explanation
this was a great way of explaining.
Hi..Its a great VDO.I do have one question.what if we have two undefined function in interface.In that case how we are going to use Lambda expression.Please help me to clear my doubt .Thanks
You can only have one method inside a functional interface. if you have more it would not be functional interface and therefore lambda will not be able to be used in this way.
Add @FunctionalInterface annotation to your Interface to make it as one. It ll restrict us from creating more than one method which is abstract.
Use Default keyword while creating a method in interface and use that with interface reference variable.
wow you just play with it....so realistic explanation...Thank you so much..
dont no how can i appreciate my feeling to you .. thank you for great explaining
Wonderfully explained! Thank you so much!
Thanks for this wonderful video. May gbu with lots of success love and life. Keep Rocking... Small suggestion::Please do add the source code so that later we can use that to revise and make notes please
Thanks a lot.Very good explanation.
Best video to understand Lambda expressions.
Mind blowing explanation
you helping in my career so much! thanks
Wow, you did a great help. This thing was really hard before watching this video.
"One doubt though. Can we use lambda if there are more than one method in the interface?*
Excellent explanation. thank you
Excellent example & explaination
Thanks Sir,for the proper and the best explanation.
Naveen, you should have donation links in summary(description) of all videos..
Im really understood every you videos so; i would like to say thank you
Super understandable even for non english speakers
Awesome Explanation
very nice ly explained please put some tutorial over threading and concurrency
Great explanation... Congrats sir
Very well explained.thankyou.keep posting videos like this
Wow!!!!! What a great tutorial it is!!! Lot of thanks sir.
Nice content. thanks for the info.
Nice video. Thank you sir for such wonderful videos !!
great work keep it up
Great explanation and examples, thank you so much! :)
Best I've seen. Now I understand everything ;)
Nice Explanation. 1 doubt what happens if we have multiple methods in the same interface.
same query
great explanation..
Really good and simple explanation
wah mazza agaya
Thanks man for the best breakdown and example!
Great work,thanks, if interface has more than one method, how java 8 handle in lamba expression. suppose if class implement more than one interface like interface1->show1 and interface1->show2, how we will define in lamda expression
"if interface has more than one method"
I don't think lambdas can work with an interface with more than one method. Perhaps someone else can confirm.
+MAK AK. You are right. Lambdas can only be used with functional interface.
Thanks for sharing
Fabulous explanation sir
Awesome explanation!!! As usual.
Excellent one sir
Thank you sir!
Good explanation of Lamda..
Well done ! Keep on !
Awesome 💞
Bro you are awesome
Clear Explanation...
Great great great!!!
great video, I totally get it now.
Thank you for the explanation
Thank You Sir
I Have One Query If We have 2 methods then how we will define it??
Hi Naveen, Thanks for the video. It was a nice explanation. Can you please tell me why the implementing methods of an interface through lambda expressions should have the access modifier as "public" only??
incredible incredible explanation tysm
You didn't ask to subscribe or like but I did anyway...really great video
Thanks :)
Nice Explanation
good stuff keep going thanks for the video
Great explanation!
Nice explanation! What if the interface has more than one method declared?
Thank you so much sir!!
Awsome ..thanx sir
Awesome...
Thanks dear 😘 ❤️ ☺️ 3 love to u
@3:04 Isn't it mandatory to put @Override on the method in the implementing class?
It's not mandatory in the sense that if you don't use it, you will get an error message.
What have you done I can see your code, the way you define is good
I have doubt if interface has two different methods then how obj=()-> will identify the correct method
i have a doubt. In java 8, we can define methods inside interface.Hence no need for a separate class right? In that case how can we call that method?
Excellent
i have a question here. With lambda expression you are providing implementation for method show() of Interface A in the place where you want to use it (here in main() method). Suppose we implement Interface A in other class, again you need to define implementation for method show() in that new class if you are using lambda expression, so are we not writing duplicate code in every class that implements Interface A when we have same implementation logic ??
If we have a class as XYZ in your example which provides implementation for show() method, then wherever we want to use the implementation of the method show(), we can create object of class XYZ and call the show() method, we need not write implementation logic in this case.
Can we get the same support with lambda expression ? without creating a new class XYZ ?
nice
smooth !!! thank you!
great work
Good
super sir...
thk u sir
Hi naveen,
Can u make video about lambda meta factory
Hey navin, so Lambda expression can be used only with interfaces?
how can we implement if we have two methods in Interface like below using lamda expressions
interface A{
void show();
void lamdaEx();
}