You can do it like this: public class Main { public static void main(String[] args) { // Define a functional interface with two parameters (name and age) BiFunction personFactory = Person::new; // Use the constructor reference to create a new Person instance Person person = personFactory.apply("John", 30); System.out.println("Name: " + person.name); System.out.println("Age: " + person.age); } }
bro, when I Started watching your video, I was bit annoyed by your speed of speech... but abb habit padd gai sunne ki... and abb sirf hasi ati rehti hai... on ur sense of humor between teaching... and haa kuch bhi samajh nahi aya obviously...
video samapt ho gai he !!... hats off sir !!
Thanks a lot. I have a favour to ask. Can you share this playlist on LinkedIn. It would be huge help 🤝
I binge watched this whole playlist, thank you for teaching, it was very informative and precise.
You're very welcome!
This is a great video for clear and concise understanding of method referencing! Great content.
thanks bhai, for speaking in hindi specially😃
Sir super u r fabulous , fantastic, unbelievable teaching
Ek Trfa 😎!! The man behind Tollywood voiceovers - truly a legend!
Awesome explanation
"Kuch bi samjh me nahi aaya he " , :D lol , so relatable
Very Nicely Explained
Great tutorial
Awesome thanks to youtube algorithm for prompting this channel, super explanation bhai keep rocking
Thank you so much 😀
bro sir mate u cleared my doubt clearly and nicely appreciate
How to pass the values for parameterized constructor make one videos on parameterized parameters like insta,static method and constructor
thanks so much sir,
so great playlist sir,
Thanks! 😊 you can join our discord or Insta @thevipulvats.
how can we use constructor refence if constructor takes more than one parameter ... and is it possible ? Well thanks for great video
You can do it like this:
public class Main {
public static void main(String[] args) {
// Define a functional interface with two parameters (name and age)
BiFunction personFactory = Person::new;
// Use the constructor reference to create a new Person instance
Person person = personFactory.apply("John", 30);
System.out.println("Name: " + person.name);
System.out.println("Age: " + person.age);
}
}
The best ❤
bro, when I Started watching your video, I was bit annoyed by your speed of speech... but abb habit padd gai sunne ki... and abb sirf hasi ati rehti hai... on ur sense of humor between teaching... and haa kuch bhi samajh nahi aya obviously...
❤❤❤💖
Java 9 , 11 , 17 features per banao
1922 videos coming tomorrow
@@EngineeringDigest I am not able to see any video on Java 9, 11, 17 feature on our channel. please help!!
mundeya tera attitude kaim aa ...
Stream api and date api
sure
And microservice design patterns 👏
koi rocket science nhi hi!
Ex ganna/gaana
lol
u r the 3rd one to notice i guess after me and my editor
copy pasted.
khali phokat ka attitude. is se better explanation youtube me upload hua hai.
Haha
To bhai tu ye kyu dekh reha hai 😀😀😀