Java 8 Lambda Basics 21 - Method References

  Рет қаралды 175,258

Java Brains

Java Brains

Күн бұрын

Пікірлер: 99
@praveenkumargupta4480
@praveenkumargupta4480 5 жыл бұрын
Hello Sir, Please prepare another course for advance lambda and streams.This basic lambda course is awesome just because you serve it like piece of cake. You have great and unique tactic of teaching.:)
@aviet90
@aviet90 4 жыл бұрын
Yes please
@paraschawla3757
@paraschawla3757 3 жыл бұрын
@Java Brains - Please include Collections and other advanced lambda concepts in 2.0 course. Couldn't find any other resource where same has been explained so succinctly.
@hiepxuan2008
@hiepxuan2008 3 жыл бұрын
Please create courses on other topics as well; even you sold it, we are here to be ready to buy it.
@arpitj795
@arpitj795 8 жыл бұрын
There is not better place to learn Java and its features than this Guy's tutorials. Koushik sir Please make more Java Specific courses, because like me hundreds of thousands of youngsters are relying on you.
@moseswilfred6497
@moseswilfred6497 4 жыл бұрын
This is the best ever course on introduction to lambda that I have seen. Looking forward to the advanced lambda course.
@amitcool99
@amitcool99 5 жыл бұрын
I have completed several of your courses! This course like the previous courses is well designed, well prepared and easy to follow. Thank you very much for putting a lot of effort into creating quality content.
@hussamselim9676
@hussamselim9676 3 жыл бұрын
your Lambda Basics playlist is one of the best, I sent it to my entire university to watch...thank you!
@manishsrms
@manishsrms 6 жыл бұрын
Sir, I told about your channels to many of my friends. All are happy after knowing about such wonderful channel. All credit goes to you.
@carlmarks2199
@carlmarks2199 8 жыл бұрын
MORE! MORE! MORE! WE WANT MORE!!
@Gan918
@Gan918 7 жыл бұрын
Simply the best tutorial of Lambda, even a novice person could understand, please add more
@shimonarudra8763
@shimonarudra8763 6 жыл бұрын
Hi Koushik, your skills as an educator are unmatched. The content is crisp, the flow of the course is well designed and you explain complex concepts with such ease. Your videos are my go to for any new concepts that I want to wrap my head around. Request you for more videos on advanced lambdas, spring mvc and concurrency in standalone and webapplications. Thanks a lot and keep it coming!
@nagaraju2083
@nagaraju2083 4 жыл бұрын
Hi Sir, you are not a tutor. you are an easy life maker. thank you soooooo much, waiting for Advance Lambda.
@rafalo2323
@rafalo2323 7 жыл бұрын
Hello Sir, thank you for your work, please prepare advance lambda
@ganeshrajput005
@ganeshrajput005 6 жыл бұрын
Very nicely explained the concepts of Java Lambdas. Recommended to all Java coders.
@viveksingh195
@viveksingh195 8 жыл бұрын
Nice Tutorial - I Love watching your tutorials, they provide clear cut concepts.
@bijanzohouri98
@bijanzohouri98 6 жыл бұрын
Clear Explanation on Lambda expressions and Collections as well as the other features in Java 8. Besides, the videos are really fairly short so that, you don't have to spend much time on unnecessary points . Good Job
@foruvasanth
@foruvasanth 7 жыл бұрын
@8:20 out is still a static member i believe otherwise how we are referring it using System.out where System is name of the class. Question is :: is applicable only to static members or any
@mirazimi
@mirazimi 4 жыл бұрын
Advanced Lamda course please! Also one on Java 8 advanced Generics would be wonderful. You’re a gifted teacher.
@utkarshsrivastava1079
@utkarshsrivastava1079 7 жыл бұрын
Excellent course !! Never understood lambdas better.
@raghavaprince2907
@raghavaprince2907 2 жыл бұрын
Please provide more advanced lambda expressions.. Here is the place Where I learned java and became a java developer in 2015.Very good explanation and easy way to learn.
@RanjithKumar-xh8oz
@RanjithKumar-xh8oz 8 жыл бұрын
Best tutorials i have ever found
@gkcotech7211
@gkcotech7211 8 жыл бұрын
Thank you, the best part of the tutorial is , its really very concise and to the point.. I will gradually watch your rest of the tutorials.. :)
@dheerajsaini9955
@dheerajsaini9955 2 жыл бұрын
Thanks!
@hyperborean72
@hyperborean72 6 жыл бұрын
For me personally the more implicit code we have ("How does the compiler knows that? " - Oh, Gosh) the more irritating it gets actually. You have to look carefully around to understand what is explicitly missing in this or that declaration
@soundhermm5514
@soundhermm5514 5 жыл бұрын
This Lambda basic course is awesome. Waiting for your advanced course in lambda
@Akki22101988
@Akki22101988 7 жыл бұрын
Sir.. The way you have explained the lambda expression concepts is really amazing. Please introduce more courses on Java.
@sureshb8869
@sureshb8869 7 жыл бұрын
Hi Sir, Please prepare advanced lambda for collections.most of the people are waiting
@sambarapu100
@sambarapu100 7 жыл бұрын
Nice Clear Explanation !! was wondering about lamdas and you made it easy for me .. looking forward for more videos. Thanks
@bibhachaurasia7886
@bibhachaurasia7886 6 жыл бұрын
Really great explanation Koushik. Its very easy to understand and most of my doubts got cleared. Please upload advance videos on Lambdas and stream APIs, many of them will be benefited. Thanks a lot for sharing videos.
@ro13ert66
@ro13ert66 6 жыл бұрын
Really excellent work! I have one question about this method references. Say if I want to print more than just the parameter that parsed in, how can I do this using method references? For example, if I want to add some words before the parsed parameter such as System.out.println("The value is: " + param); , can I do it with method references while not wrapping things up?
@priyankawagh5217
@priyankawagh5217 5 жыл бұрын
please provide the advance course using collections and stream api! you r awesome teacher.
@utopianguy
@utopianguy 3 жыл бұрын
How does the compiler know what is the passing argument for the method reference?
@shahabyounas
@shahabyounas 7 жыл бұрын
Interactive tutorial Looking forward Advance Lambda Expression Course, Java9 and Advance Spring Boot. Thank you java brain.
@Natsu_Morocco
@Natsu_Morocco Жыл бұрын
I like your courses alot so please go ahead :)
@manjeshk11
@manjeshk11 7 жыл бұрын
I do really like this series very useful, so it will be grateful if you make Java 8 series also
@premv6904
@premv6904 6 жыл бұрын
Thanks for such fine tutorials, the concepts were crisp and clear.
@shubhamchouksey9904
@shubhamchouksey9904 8 ай бұрын
Is using Method References a good practice for maintainable code? I see that the reader has to actually look into the parameters of the and keep both of them side by side.
@aryashrestha6601
@aryashrestha6601 3 жыл бұрын
sir can we have advance lambda tutorial. too. the basic were awesomely taught.
@jeromejj1481
@jeromejj1481 7 жыл бұрын
Hey Genius! You knock me dead just like that. Hat's off to you for your selfless initiative. Gratified abundantly as your ardent follower. Keep up the good work.
@0001adarsh
@0001adarsh 4 жыл бұрын
You are awesome. Such great technique to explaining concepts. Also do make videos on Completable Future.
@MyHemadri
@MyHemadri 6 жыл бұрын
Very nice and fantastic explanation.... you are java GOD!!!!!
@hamsalekhavenkatesh3440
@hamsalekhavenkatesh3440 5 жыл бұрын
wow, awesome sir ..GAVE ME A CLEAR picture of lamdas!! please make an advanced video on this...and kudos to ur effort u explain complex topics very clearly and in east to follow up way
@MrRicharddaniel
@MrRicharddaniel 6 жыл бұрын
Please Advanced Lambda Please :) You are one my fav teachers here on youtube
@vinodgharge7225
@vinodgharge7225 3 жыл бұрын
Hi Sir, please prepare advance lambda course.... Much needed...
@brianocorner5604
@brianocorner5604 7 жыл бұрын
Hi!.. I was trying to use method reference for printing a message e.g. System.out.println("Hello") as System.out::println("Hello"). But I was getting compile time error, Can you please explain it why and how it internally works?
@rokkistart
@rokkistart 6 жыл бұрын
This course is really new level for me ))) I'm exited))
@amirthasaha
@amirthasaha 5 жыл бұрын
Thank you sir for such wonderful courses, cant thank you enough for making it very simple and interesting. Can you please make courses on basic java so that it would be of great use for beginners in Java. Thanks again! I have gone through almost all of your courses and it is mind blowing.
@TheKNdheeraj0
@TheKNdheeraj0 7 жыл бұрын
How can I use System.out::println to print only First Name or Last Name because using System.out::println prints the entire data of the list??
@ajayyaatri
@ajayyaatri 7 жыл бұрын
Great tutorial.. Man you should do more of this.. hats off to u !!
@nitantjoshi8614
@nitantjoshi8614 4 жыл бұрын
Sir, please create a detail videos in java streams. This series is really helfull.
@sivashankar1850
@sivashankar1850 5 жыл бұрын
nice carry on with lambda's in depth sir
@vimalbs
@vimalbs 6 жыл бұрын
Please create a course for Collections
@shakthiandmaheshwari
@shakthiandmaheshwari 8 жыл бұрын
Hello a question pls..why would you say the "out" object in System class is instance, isnt that a static member of the System class?
@shakthiandmaheshwari
@shakthiandmaheshwari 8 жыл бұрын
sorry i later understood u meant println is an instance method on out.
@onlinetvoffical
@onlinetvoffical 6 жыл бұрын
Awesome videos! Please prepare advance lambda
@amithballolli2598
@amithballolli2598 5 жыл бұрын
Hi sir, thank you for such a great course,please do a course on advance lambda
@vinuthat1858
@vinuthat1858 6 жыл бұрын
Looking forward for more topics in java 8 and 9
@orz5516
@orz5516 6 жыл бұрын
are you planning to make more java courses?
@IsaacKamga
@IsaacKamga 7 жыл бұрын
We kindly await a course on Advanced Lambdas
@entertainment55
@entertainment55 5 жыл бұрын
please create a course on advance lambda's
@monikajha3500
@monikajha3500 6 жыл бұрын
I feel I have missed so many things even if I miss just one video from Koushik :)
@balkrushnawagh2641
@balkrushnawagh2641 7 жыл бұрын
hello sir, please post the tutorials for advanced lambda with collections and streams in detail.
@rohitgovindugari
@rohitgovindugari 2 жыл бұрын
Make a course for advanced lambdas
@wattheshet
@wattheshet 7 жыл бұрын
You know if you have a course on udemy about advance java stuff. I will definitely buy it. You explain really well
@MrGauravmatta
@MrGauravmatta 6 жыл бұрын
Is this only possible with Static Methods?
@hemantk611
@hemantk611 6 жыл бұрын
No..its also possible with instance method as well. We have to create object then using object reference we can pass ...
@ravidongapure3164
@ravidongapure3164 7 жыл бұрын
Please!!Pleaase make tutorial on advance Lamda
@tejassabunkar9079
@tejassabunkar9079 7 жыл бұрын
Sir, Please Prepare more advanced course we will love to intake more concepts from you.
@AryanSingh-fu2cf
@AryanSingh-fu2cf 7 жыл бұрын
Sir, please create more tutorials on lambda....
@deepthinker1710
@deepthinker1710 Жыл бұрын
this is the most difficult topic in my life.iam still confused
@GihanKavinda.
@GihanKavinda. Жыл бұрын
me too
@sahilsehgal626
@sahilsehgal626 6 жыл бұрын
Hi sir, Can you please start the course on advance lambdas. Please sir... :)
@zerziszain
@zerziszain 7 жыл бұрын
But WHY we need method references? What was the problem with using lambdas? Why to introduce one more way to do the same thing? Doesn't it actually add to the complexity of the language? Unless there is some benefit. So why method references? What they can do that lambdas or any other java's feature can't?
@LeeHongYee99
@LeeHongYee99 6 жыл бұрын
Saurabh Patil i.also feel the same way
@georgetsiklauri
@georgetsiklauri 6 жыл бұрын
Several major mistakes and wrongly explained points here: 1. out is not and has never been an instance field/variable of System class; (moreover, you are simply unable to invoke/call/access an instance field/method, via period symbol.. basics of Java). You are mentioning several times, that it's an instance, but it's a very static field; 2. Talking about the numbers of arguments/parameters of the lambda expression, in the "Method Reference" topic's context is also very misguiding and confusing. Actually, one might get something working and might think, that he/she understood this correctly.. but it's not about one or two arguments only. What if you'll have (s, t, k, z,) -> someMethod(s, t, k, z) ? can't you use a reference of the method here? well, despite all respect, this is a very wrong approach; the point of Method References is: 3. .. that you are matching the signature of the existing (implemented) method, to the signature of the Functional Interface (Lambda's type), and if they match, you can assign a method, as a value, to the Functional Interface type's variable, so that after you call a method on that variable, referenced method will be executed. If you have interface Operable { void doSomething(int a, int b);} and somewhere else a method - public void sum(int a, int b);, you can assign this method's reference to the variable and use that variable anywhere code expects the respective signature of the method. forEach(System.out::println()); works because, of forEach expects the lambda of type Consumer, and System.out.println turns out to be a type of Consumer, since it accepts T and returns void; 4. The only difference between using Method Reference in either static or instance methods, is the new keyword. You use instance method's reference as "new CustomType()::methodName" and you use static method's reference as CustomType::methodName".
@NeverGiveUpTryin
@NeverGiveUpTryin 5 жыл бұрын
I agree with you and would like to understand more on your 3rd point. To test I'm using a Consumer and trying to print a string using method reference. //case1. Consumer con1 = System.out::println; con1.accept("Hello"); //prints Hello Here, the println(String) method from PrintStream matches to the method signature of accept(T) in Consumer and so it works fine. Understood. //case2. Consumer con2 = System.out::printf; con2.accept("World"); //prints World Here, I'm using printf method from PrintStream which either takes 2 or 3 args and also returns PrintStream. This doesn't match to the method signature of accept(T) method in Consumer, as accept(T) method accepts only 1 arg and also returns void. So how is it still able to print the value ? Why the compiler doesn't complain ? //Case3. Consumer con3 = System.out::printf; //compilation fails because printf does not have any version that accepts an Integer. con3.accept(100); My understanding is, printf method has 2 overloaded version printf(String, Object) and printf(Local,String,Object) in PrintStream class. Now when we create a Consumer and assign System.out::printf to it, the compiler checks if a string can actually be passed to printf method. Yes it can be and so for other arguments, i guess it passes null. May be I'm wrong.
@vishank848848
@vishank848848 7 жыл бұрын
best tutorials sir, please make same on advance lambda...thanks in advance...........
@Dyslexic_Neuron
@Dyslexic_Neuron 5 жыл бұрын
plz make multithreading series !!
@GihanKavinda.
@GihanKavinda. Жыл бұрын
I can't get it, method references is harrrd : (
@chirangaalwis4014
@chirangaalwis4014 7 жыл бұрын
Hopefully new tutorials on new Collections improvements
@AmineC88
@AmineC88 7 жыл бұрын
please prepare advance lambda tutorials
@IamAWESOME3980
@IamAWESOME3980 6 жыл бұрын
What a misuse of the c and c++ scope resolution operator.
@manishsrms
@manishsrms 6 жыл бұрын
We want more Sir... More Pls more..
@amandeeptomar1772
@amandeeptomar1772 6 жыл бұрын
really awesome course
@emrekaplan742
@emrekaplan742 2 жыл бұрын
amazing vid!! thanks
@rbelatamas
@rbelatamas 3 жыл бұрын
Thank you very much!
@shashikantkamble5406
@shashikantkamble5406 7 жыл бұрын
Advanced Lamda and Java 8 Please!
@MrJamesJ133
@MrJamesJ133 7 жыл бұрын
Thank you so much bro , please help me in understanding lambda with collections in detail. Please Please. :)
@jaswanthnanda8122
@jaswanthnanda8122 8 жыл бұрын
best tutorials
@christinal7041
@christinal7041 7 жыл бұрын
Thank You Very Much! Please find time to teach advance Lambda!
@aruljazz9774
@aruljazz9774 2 жыл бұрын
Hello SIr, Please allow the JAVA and java interview video to be free. Because lot people are looking for your version java video. So please make that as free one.
@vatsalmehta6644
@vatsalmehta6644 3 жыл бұрын
Think this method references are making code less readable!
@tripsikkim8398
@tripsikkim8398 4 жыл бұрын
its an alternative however sounds weird
@nandini.nelson
@nandini.nelson 5 жыл бұрын
Looks like c++
@muditjain6975
@muditjain6975 6 ай бұрын
Great
@satyas3136
@satyas3136 4 жыл бұрын
Awesome video, but no doubt why java is lagging behind Python, when python is bringing new API wrt AI , ML , DS java is focussing on this nonsense stuff of rewriting same stuff in different way. This is annoying.
@Standupibrahimbackup
@Standupibrahimbackup 3 жыл бұрын
Guys if you find any concept of lambdas hard just remember, lambdas are nothing but functions. Replace Lambdas with functions and everything will be easy as stealing candy from a baby or as easy as my ex cheated on me :)
Java 8 Lambda Basics 22 - The foreach iteration
9:25
Java Brains
Рет қаралды 143 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 796 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Java 8 Lambda Basics 20 - The this reference in lambdas
9:54
Java Brains
Рет қаралды 128 М.
Java lambda λ
18:00
Bro Code
Рет қаралды 102 М.
Java 8 Lambda Basics 23 - Introduction To Streams
11:26
Java Brains
Рет қаралды 181 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 167 М.
Java Method References - A Beginner's Guide
12:59
Dan Vega
Рет қаралды 9 М.
Java 8 - Method References
10:57
Shristi Tech Academy
Рет қаралды 6 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.