Java 8 - Functional Interfaces -Predicate, Function, BinaryOperator,UnaryOperator, Supplier-Consumer

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

ความคิดเห็น • 21

  • @tushararora512
    @tushararora512 4 ปีที่แล้ว +6

    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.

  • @Tidda420
    @Tidda420 3 ปีที่แล้ว +5

    Very detailed explanation.,i was searching this explanation all over the internet and here the search completed.

  • @venkat757
    @venkat757 ปีที่แล้ว

    I came here to learn lambda expression, after watching your 6th video in collections. Collection series is very good. Thank you. 🤝🤝🤝

  • @MrUmang40
    @MrUmang40 4 ปีที่แล้ว +3

    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

  • @swamyas5668
    @swamyas5668 4 ปีที่แล้ว +1

    Thanks for covering most important types

  • @jatinsharma3792
    @jatinsharma3792 2 ปีที่แล้ว +1

    It shoud be long, I am enjoying :D Thanks, I should have enrolled in your course.

  • @dessam7889
    @dessam7889 4 ปีที่แล้ว

    Please update selenium video and Free CRN. You are one of the best in TH-cam. Please new video

  • @ankitshrivastava1772
    @ankitshrivastava1772 11 หลายเดือนก่อน

    very good in daily life coding.

  • @binaryautomation-sdets2336
    @binaryautomation-sdets2336 3 ปีที่แล้ว

    Explained it well. Good job Naveen.

  • @vijayaraghavanvashudevan1977
    @vijayaraghavanvashudevan1977 4 ปีที่แล้ว +1

    Thank you.. Will try to use above functions in my automation code

  • @tazzyreign2629
    @tazzyreign2629 3 ปีที่แล้ว +1

    Excellent tutorial but can someone also share some real world applications of the respective functional interfaces and it's methods, thanks.

  • @developerscentre
    @developerscentre 2 ปีที่แล้ว

    Thank you for sharing your knowledge! :)

  • @karamjitsinghsehdev3451
    @karamjitsinghsehdev3451 2 ปีที่แล้ว

    explained well Naveen but y 2 interfaces for the same purpose,unaryoperator and function.also top 2 interfaces are not used anywhere y so.

  • @92pavithra
    @92pavithra 2 ปีที่แล้ว

    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

  • @tulasiramsunkara
    @tulasiramsunkara 3 ปีที่แล้ว

    @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.

  • @arkaimps
    @arkaimps 4 ปีที่แล้ว

    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?

    • @thesachingunjal
      @thesachingunjal 4 ปีที่แล้ว

      yes and same goes for Function and UnaryOperator

  • @dessam7889
    @dessam7889 4 ปีที่แล้ว +1

    Please can you update your selenium with java videos alot have changed. Thanks you

  • @amanueltesfu6071
    @amanueltesfu6071 2 ปีที่แล้ว

    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
    }