Superb 🌻...also please do a video DTO's in springboot in my project we've using DTO's I am unable to get the use and purpose of implementing DTO's 😭 please do a small video if possible 🧡
Hello Sir how this is working Employee::getName , as we know we can't call a non static method using the above syntax. It's bit confusing. Can anyone help me to understand this concept
Hi bro, Thank you for the video on method reference. Kindly help me to understand Reference to an instance method of an arbitrary object of a particular type with below example. Example: String [] array = {"Code","Java","C++"}; Arrays.sort ( array, String:: compareToIgnoreCase); In this example ,String Class compareToIgnoreCase method having arguments then How ClassName:: instance method working here. Kindly help with this
.min((Integer::compareTo)); but in this example compareto contains method parameter even though how can I access directly without creating object could you explain it
@@Javatechie Optional maximumNumber = numbers .stream() .filter(Objects::nonNull)// It filter non null elements .max((Integer::compareTo)); // returns maximum number and through exception if the element is null it filters non-null elements Optional minNumber = numbers .stream() .filter(Objects::nonNull)// It filter non null elements .min((Integer::compare)); Compare is a static method we can Directly access by using class name but compareTo method is a non static method but how can we accessed by using class name but it contains also the method parameter you said that we can't able to access that method by using class name by method reference if the method contains method parameter
Nice tutorial. Please share reason for map(ArrayList::new) in the following line you showed at the very end: It just prints empty ArrayList as many times as the number of employees. Not sure the intent of printing empty list. Thanks ______ service.loadEmployeesFromDB().stream().map(Employee:getId).map(ArrayList::new).f orEach(System.out.println);
Brilliant. Nobody explains like you. Thanks
Gurudevobhava 🙏 Excellent explanation!! And specially Employee::getName 🙏 God bless you 🙏
My pleasure buddy that i am able to explain in proper way
@@Javatechie you explain so good because you very good knowledge and skills to explain!!! God bless you 🙌
So helpful, thanx a lot!! I was struggling on method reference for some days before i came across this excellent video - released just in time! 👍😁
Very Good. You explained a long theory just over 30 minutes in simple terms. Thanks for the video.
Awesome Explanation with example....! 😊👌👍
best in youtube for metod ref
Thanks a lot!!!! Concept was explained in very interesting and detailed way.
Hi Basant, eagerly waiting for the video series of Java 17 from you ... thanks in advance
Okay i will upload it
we want it you got it, Godly content!!
Excellent job 🎉
Impressive
You have skill teaching.
Excellent boss, Kudos
really its great video
Hello from finland. Hei suomesta ja kiitos😍
Thanks for the simple explanation!
Your tutorials are just awesome...
You are really Great and AWESOME….😊
Nice explanation 👍🏻😊
Your videos are great as always. ❤️
Nicely explained!
Good explanation..
Super expiation
Great explanation
Thankyou for Explanation.
Thanks a lot for helping here
Superb 🌻...also please do a video DTO's in springboot in my project we've using DTO's I am unable to get the use and purpose of implementing DTO's 😭 please do a small video if possible 🧡
Okay 👍
Bhaiya mzza aagya, are println static nahi hei😂😂😂😂
🤪 static to hai println
interview question @29:43
Hi Brother, Thanks for this series,
Could you please make a video on Java 8 grouping by.
Thanks in advance!!
Okay
Awesome bro, but the source link you posted is not a correct one.
can you please share the source code with us?
Let me check and update
It Awesome!. Can you make one video for MapStruct
Okay sure
out::println is instance method reference right correct me if im wrong
In the last minute you are printing the ids from ArrayList but they are empty, why? What to do to show ids?
Thanks
What if Instance method has arguments, can we use it with class reference?
Yes we can like String::toUpperCase
@@Javatechie Please give an example for Method reference where the method takes multiple arguments.
Sir can we get the code which u are using to explain ?
is foreach accepts consumer only right? but you are calling static method ref
Is kafka videos are coming for begineers?
Yes will start from very basic level
@@Javatechie when can i expect please i really want to learn
@@AbhishekGupta-fi2wp next week onwards i will upload
Hello Sir how this is working Employee::getName , as we know we can't call a non static method using the above syntax. It's bit confusing. Can anyone help me to understand this concept
Please check the video again. I have explained the same question over there
@@Javatechie Ok Sir Thank you so much for providing the good content. Really because of your videos only I am able to start with Spring Boot.
Good to hear this 😃. Keep learning
Hi bro, Thank you for the video on method reference.
Kindly help me to understand
Reference to an instance method of an arbitrary object of a particular type with below example.
Example:
String [] array = {"Code","Java","C++"};
Arrays.sort ( array, String:: compareToIgnoreCase);
In this example ,String Class compareToIgnoreCase method having arguments then
How ClassName:: instance method working here. Kindly help with this
@javatechie why didn't you answer this question please? I also found it pertinent.
If it takes a single argument of the type which you are getting from the stream then it will work
I think it is taking String as object literal
What are VO and DTO classes
Value object and data transfer object. Both are the same who hold request attribute
.min((Integer::compareTo)); but in this example compareto contains method parameter even though how can I access directly without creating object could you explain it
Not getting your question? Where did we create an object?
@@Javatechie Optional maximumNumber = numbers .stream() .filter(Objects::nonNull)// It filter non null elements .max((Integer::compareTo)); // returns maximum number and through exception if the element is null it filters non-null elements Optional minNumber = numbers .stream() .filter(Objects::nonNull)// It filter non null elements .min((Integer::compare));
Compare is a static method we can Directly access by using class name but compareTo method is a non static method but how can we accessed by using class name but it contains also the method parameter you said that we can't able to access that method by using class name by method reference if the method contains method parameter
Sir there is and arbitorary method refrence . I have seen many place . Please cover that. I realy do not underatand it
Okay but that is kind of predefined method for example String::toUpperCase
Little bit confusing
What's your confusion
Your native accent is very bad,
Nice tutorial. Please share reason for map(ArrayList::new) in the following line you showed at the very end:
It just prints empty ArrayList as many times as the number of employees. Not sure the intent of printing empty list. Thanks
______
service.loadEmployeesFromDB().stream().map(Employee:getId).map(ArrayList::new).f
orEach(System.out.println);