This is where Sir java starts to get interesting..... Like covering most of the functional interfaces.... Working on comparators comparables..... Later on sir we can have videos on javas completable futures and it's similarities with promises in java script... Ek teer do nishaane..... Anyways you doing a great job.... Keep helping us like this
Hi @Naveen ji, i have seen now Bifunction is not T,T,T it is T,U,R which means any types of input arguments and any type of output result. I think this is latest one
@Naveen Automation Labs : Can you please let us know why Comparable interface is not a Functional Interface though it has only one abstract method compareTo and why comparator is a Functional Interface though it has two abstract methods compare and equals with a demo program.
Thanks Naveen for sharing this. But just wanted to clarify one part where you said BiFunction and BinaryOperator are same. It doesn't seem like that always. BiFunction can have any type of two inputs and any type of Return type, whereas we can replace BiFunction with use of BinaryOperator when both the inputs and output arguments of same type. Please correct me if my understanding is correct?
If teaching is an art, you are a Picasso of it. 🙏. I was always afraid of these topics but now I am able to understand it day by day.
Very detailed explanation.,i was searching this explanation all over the internet and here the search completed.
I came here to learn lambda expression, after watching your 6th video in collections. Collection series is very good. Thank you. 🤝🤝🤝
This is where Sir java starts to get interesting.....
Like covering most of the functional interfaces....
Working on comparators comparables.....
Later on sir we can have videos on javas completable futures and it's similarities with promises in java script...
Ek teer do nishaane.....
Anyways you doing a great job....
Keep helping us like this
Totally agree with you. Will do it for sure.
Thanks for covering most important types
It shoud be long, I am enjoying :D Thanks, I should have enrolled in your course.
Please update selenium video and Free CRN. You are one of the best in TH-cam. Please new video
very good in daily life coding.
Explained it well. Good job Naveen.
Thank you.. Will try to use above functions in my automation code
Excellent tutorial but can someone also share some real world applications of the respective functional interfaces and it's methods, thanks.
Thank you for sharing your knowledge! :)
explained well Naveen but y 2 interfaces for the same purpose,unaryoperator and function.also top 2 interfaces are not used anywhere y so.
Hi @Naveen ji, i have seen now Bifunction is not T,T,T it is T,U,R which means any types of input arguments and any type of output result. I think this is latest one
@Naveen Automation Labs : Can you please let us know why Comparable interface is not a Functional Interface though it has only one abstract method compareTo and why comparator is a Functional Interface though it has two abstract methods compare and equals with a demo program.
Thanks Naveen for sharing this.
But just wanted to clarify one part where you said BiFunction and BinaryOperator are same. It doesn't seem like that always. BiFunction can have any type of two inputs and any type of Return type, whereas we can replace BiFunction with use of BinaryOperator when both the inputs and output arguments of same type. Please correct me if my understanding is correct?
yes and same goes for Function and UnaryOperator
Please can you update your selenium with java videos alot have changed. Thanks you
public static void main(String[] args) {
Consumer func = x -> System.out.println(x);
// void accept(T t) is an abstract method
func.accept("This is Naveen here!!!"); // This is Naveen here!!!
List list = Arrays.asList(1,2,3,4,5,6,7,8,9,10,125,1453,23456, 852);
list.forEach(x -> System.out.print(x + "\t"));
// 1 2 3 4 5 6 7 8 9 10 125 1453 23456 852
System.out.println();
list.forEach(x -> System.out.print(x.toString().length()+ "\t")); // prints the length . Example 23456 has 5 digits, therefore length = 5
// 1 1 1 1 1 1 1 1 1 2 3 4 5 3
}