No video

Method Reference in Java 8 ♨️ | Explained With Examples | Interview QA | JavaTechie

  Рет қаралды 32,317

Java Techie

Java Techie

Жыл бұрын

In this tutorial, we will see what are Method references and how can we use it with Detailed Explanation
#JavaTechie #java8
java 8 complete class : • Java 8 complete tutori...
Spring boot microservice Live course Just started (Recordings available)
Hurry-up & Register today itself!
COURSE LINK : javatechie5246.ongraphy.com/
PROMO CODE : Java40
GitHub:
github.com/Java-Techie-jt/spr...
Blogs:
/ javatechie
Facebook:
/ javatechie
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community ,
you are free to use source code from above mentioned GitHub account

Пікірлер: 72
@health.upgradedbyscience.7309
@health.upgradedbyscience.7309 Жыл бұрын
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! 👍😁
@PJ-oz2pg
@PJ-oz2pg Жыл бұрын
Brilliant. Nobody explains like you. Thanks
@kapilausarmal6300
@kapilausarmal6300 Жыл бұрын
Awesome Explanation with example....! 😊👌👍
@gaddamsushama5673
@gaddamsushama5673 Жыл бұрын
Thanks a lot!!!! Concept was explained in very interesting and detailed way.
@ramsp35
@ramsp35 3 ай бұрын
Very Good. You explained a long theory just over 30 minutes in simple terms. Thanks for the video.
@kishordige9721
@kishordige9721 Жыл бұрын
Thanks for the simple explanation!
@krishnamohan5771
@krishnamohan5771 8 ай бұрын
Excellent job 🎉
@harshitanand8216
@harshitanand8216 Жыл бұрын
Your videos are great as always. ❤️
@aayush5474
@aayush5474 Жыл бұрын
Nicely explained!
@abhishekgowlikar
@abhishekgowlikar Жыл бұрын
Excellent boss, Kudos
@SHAHIDKUMAR-kd7vu
@SHAHIDKUMAR-kd7vu Жыл бұрын
really its great video
@surendrareddyseelam9757
@surendrareddyseelam9757 Жыл бұрын
we want it you got it, Godly content!!
@suprajakannaiyan1301
@suprajakannaiyan1301 Жыл бұрын
Your tutorials are just awesome...
@JackSon-lj3on
@JackSon-lj3on Жыл бұрын
Good explanation..
@BeOnlyOne1
@BeOnlyOne1 9 ай бұрын
You are really Great and AWESOME….😊
@konanpower6451
@konanpower6451 Жыл бұрын
Hello from finland. Hei suomesta ja kiitos😍
@mahendrabisht9253
@mahendrabisht9253 Жыл бұрын
Thanks a lot for helping here
@shubhamh8771
@shubhamh8771 10 ай бұрын
Thankyou for Explanation.
@ramakrishna-lz3ep
@ramakrishna-lz3ep Жыл бұрын
Super expiation
@leecha9512
@leecha9512 Жыл бұрын
Gurudevobhava 🙏 Excellent explanation!! And specially Employee::getName 🙏 God bless you 🙏
@Javatechie
@Javatechie Жыл бұрын
My pleasure buddy that i am able to explain in proper way
@leecha9512
@leecha9512 Жыл бұрын
@@Javatechie you explain so good because you very good knowledge and skills to explain!!! God bless you 🙌
@nguyenquan4836
@nguyenquan4836 Жыл бұрын
You have skill teaching.
@user-lw1dd4md5o
@user-lw1dd4md5o 2 ай бұрын
Great explanation
@Aniruddhdwivedi
@Aniruddhdwivedi Жыл бұрын
Hi Basant, eagerly waiting for the video series of Java 17 from you ... thanks in advance
@Javatechie
@Javatechie Жыл бұрын
Okay i will upload it
@kunwarrajneeshsingh3132
@kunwarrajneeshsingh3132 Жыл бұрын
Nice explanation 👍🏻😊
@mdsaquibansari4123
@mdsaquibansari4123 11 ай бұрын
Thanks
@Sundharamurali
@Sundharamurali Жыл бұрын
Hi Brother, Thanks for this series, Could you please make a video on Java 8 grouping by. Thanks in advance!!
@Javatechie
@Javatechie Жыл бұрын
Okay
@hariprasad2697
@hariprasad2697 Жыл бұрын
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 🧡
@Javatechie
@Javatechie Жыл бұрын
Okay 👍
@sureshmanne7245
@sureshmanne7245 Жыл бұрын
In the last minute you are printing the ids from ArrayList but they are empty, why? What to do to show ids?
@mohanrathod5291
@mohanrathod5291 Жыл бұрын
It Awesome!. Can you make one video for MapStruct
@Javatechie
@Javatechie Жыл бұрын
Okay sure
@sm8817
@sm8817 3 ай бұрын
Sir can we get the code which u are using to explain ?
@LoveToLearnanilappana
@LoveToLearnanilappana 4 ай бұрын
out::println is instance method reference right correct me if im wrong
@krishnamohan5771
@krishnamohan5771 8 ай бұрын
is foreach accepts consumer only right? but you are calling static method ref
@gowtham4383
@gowtham4383 Жыл бұрын
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
@aurelienfredytakoutene7114
@aurelienfredytakoutene7114 Жыл бұрын
@javatechie why didn't you answer this question please? I also found it pertinent.
@Javatechie
@Javatechie Жыл бұрын
If it takes a single argument of the type which you are getting from the stream then it will work
@krishnamohan5771
@krishnamohan5771 8 ай бұрын
I think it is taking String as object literal
@sandeepjoshi4178
@sandeepjoshi4178 9 ай бұрын
Bhaiya mzza aagya, are println static nahi hei😂😂😂😂
@Javatechie
@Javatechie 9 ай бұрын
🤪 static to hai println
@ElonMusk-wo7zf
@ElonMusk-wo7zf Жыл бұрын
What if Instance method has arguments, can we use it with class reference?
@Javatechie
@Javatechie Жыл бұрын
Yes we can like String::toUpperCase
@ElonMusk-wo7zf
@ElonMusk-wo7zf Жыл бұрын
@@Javatechie Please give an example for Method reference where the method takes multiple arguments.
@abhilashpatel6852
@abhilashpatel6852 Жыл бұрын
interview question @29:43
@jrdillip
@jrdillip 11 ай бұрын
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
@Javatechie
@Javatechie 11 ай бұрын
Please check the video again. I have explained the same question over there
@jrdillip
@jrdillip 11 ай бұрын
@@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.
@Javatechie
@Javatechie 11 ай бұрын
Good to hear this 😃. Keep learning
@javatamilan
@javatamilan 3 ай бұрын
.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
@Javatechie 3 ай бұрын
Not getting your question? Where did we create an object?
@javatamilan
@javatamilan 3 ай бұрын
@@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
@harshitsachdeva4836
@harshitsachdeva4836 Жыл бұрын
What are VO and DTO classes
@Javatechie
@Javatechie Жыл бұрын
Value object and data transfer object. Both are the same who hold request attribute
@sujitkumar2196
@sujitkumar2196 5 ай бұрын
Awesome bro, but the source link you posted is not a correct one. can you please share the source code with us?
@Javatechie
@Javatechie 5 ай бұрын
Let me check and update
@preetisharma7602
@preetisharma7602 Жыл бұрын
Sir there is and arbitorary method refrence . I have seen many place . Please cover that. I realy do not underatand it
@Javatechie
@Javatechie Жыл бұрын
Okay but that is kind of predefined method for example String::toUpperCase
@AbhishekGupta-fi2wp
@AbhishekGupta-fi2wp Жыл бұрын
Is kafka videos are coming for begineers?
@Javatechie
@Javatechie Жыл бұрын
Yes will start from very basic level
@AbhishekGupta-fi2wp
@AbhishekGupta-fi2wp Жыл бұрын
@@Javatechie when can i expect please i really want to learn
@Javatechie
@Javatechie Жыл бұрын
@@AbhishekGupta-fi2wp next week onwards i will upload
@bindu6790
@bindu6790 9 ай бұрын
Little bit confusing
@Javatechie
@Javatechie 9 ай бұрын
What's your confusion
@naoryehuda6830
@naoryehuda6830 2 ай бұрын
Your native accent is very bad,
@srinin4600
@srinin4600 19 күн бұрын
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);
Method Reference in Java 8
21:06
Telusko
Рет қаралды 180 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 13 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 497 М.
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4,3 МЛН
How to use Method References - Java 8 Tutorial
10:17
Aneesh Mistry
Рет қаралды 9 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 142 М.
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 197 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 13 МЛН