Functional Interfaces in Java 8

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

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

  • @boosan_m
    @boosan_m 3 ปีที่แล้ว +47

    You start all your content straight from 0:01, no chatter, no use less intro, no drama. Love it. You are the BEST!

  • @Learning-Lane-Knowledge
    @Learning-Lane-Knowledge 5 ปีที่แล้ว +41

    Nowhere I found such a nice explanation of lambda functions. Thank you for your efforts .

  • @itsmyopinion3264
    @itsmyopinion3264 4 ปีที่แล้ว +13

    You are the best in explaining java concepts... Brilliant.. . Fabulous..

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

    I read a lot of articles on the functional interfaces and then watched this video. This summarizes everything.

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

    this is how anyone should explain functional interface and lambda. You won't believe I'm confused since day 1. Now all is clear.

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

    Another awesome video. Can you please continue making more videos even if they are not that frequent. If I have to learn any new concept, your channel is the first place I visit. Thank you so much for the contribution.

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

    Best explanation of Functional Interfaces I've seen on here

  • @swanandwagle3937
    @swanandwagle3937 5 ปีที่แล้ว +1

    Now that is called exams of functional interfaces with practical usages.... I was searching in long videos on other channels for same but didn't know I will find it in such a short video.... thanks a lot.... keep doing good work

  • @SanjayKumar-by6oc
    @SanjayKumar-by6oc 3 ปีที่แล้ว

    Right kind of voice for the kind of subject..

  • @sathishrajasekar1155
    @sathishrajasekar1155 3 ปีที่แล้ว +2

    Thanks a lot Deepak, The way you present & explain the concepts are really Amazing !!! My gratitude towards the knowledge that you have share across all the videos.

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

    It's very concise explanation of java lamda! Thanks a lot.

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

    Very clean and straightforward content.

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

    I really don’t know how to thank you for such a great videos , so many things I am learning for you. Please do accept my thanks and kind gratitude 🙏🙏

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

      Thanks so much for your kind words!

  • @MahmoudRedaM
    @MahmoudRedaM 5 ปีที่แล้ว +1

    Very clear, direct to the point, with not much jargon, Thanks!

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

    Awesome I came here for functional interfaces and learnt some basics about lambda also. you categorized the use of lambda also . Thanks

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

    Excellent video.
    An additional info - we use predicte as a parameter in stream.filter(...) as well.
    filter is something that we use quite often for operations on a Collection

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

      javarevisitt.blogspot.com/2020/05/functional-interface.html?m=1

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

    You definitely Defog our mind

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

    Very nicely explained and that too to the point..thank you

  • @biswaroy1869
    @biswaroy1869 5 ปีที่แล้ว +2

    Wonderfully explained. This video has got everything one needs to know about Functional interface. Plz correct me if I am wrong, there are interfaces in java which are not annotated with @FunctionalInterface though but can still be used as functional interfaces with lambda expression e.g Executor.

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว +4

      Correct. Functional interface does not modify behavior of the class, it's just a marker for using developers to understand it's purpose. Thus an appropriate interface can be used without annotation.

    • @biswaroy1869
      @biswaroy1869 5 ปีที่แล้ว +1

      @@DefogTech Thanks for your prompt response.

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

    Well narrated.. very useful.

  • @luiscisneros9076
    @luiscisneros9076 5 ปีที่แล้ว +1

    Great explanation of lambda. Thank you.

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

    Awesome ,Straight to the content,Great explanation with examples.

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

    Very clear explanation, thanks a lot

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

    Nice explanation ✌️..So can we say
    1. functional interface concept is introduced in Java 8 so that we can use lambda expression.
    2. Lambda expression is introduced to minimize the code. As we know that the interfaces having only one abstract method, we have to write separate class or write anonymous class to implement the same.
    Would be grateful for your reply🙏

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว +2

      Correct for both points

  • @deep80105
    @deep80105 5 ปีที่แล้ว +1

    A clear explanation of an important concept. Thanks.

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

    Please make a series on JVM memory model and how and where static, instance methods, objects, Strings are stored in Java 9 and above. Awesome content :)

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

    Really good and clear explanation. Please keep it up, Sir!

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

    You are such a good mentor ,love you bro

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

    Just to add, at 4:30, infact the lambda expression [ ( u1, u2 ) - > u1.getId().compareTo( u2.getId() ) ] can be assigned to any functional interface that is of Type , accepts two parameteres in its method declaration and returns an integer.

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

      ya i was wondering if that was possible or not

  • @hopskiprepeat
    @hopskiprepeat 5 ปีที่แล้ว +1

    Excellent video to understand functional interfaces in java 8. Thanks a lot!

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

    Very good explanation

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

    Really nice explanation

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

    Just Awesome explanation hats off.

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

    Very clearly explained

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

    Ok this was seriously well done.

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

    Thanks man :) clear and straight to the point.

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

    Awesome video!, please continue to make new videos

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

    you sound like Arnab goswami but made it short and to the point as per my expectations
    Thanks!

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

    amazing video. thank you very much

  • @chandrashekara6455
    @chandrashekara6455 5 ปีที่แล้ว +2

    Thanks Defog! Have been following the channel for multi threading concepts as well. Great explanations.
    I noticed that you're referring to presentations in all the videos. Would it be a possible to share them? Would be great to revise.

  • @mahendharkhedhar7887
    @mahendharkhedhar7887 5 ปีที่แล้ว

    Really threading concepts are awesome in u r channel....

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

    Very nice explanation!!

  • @100bands
    @100bands 4 ปีที่แล้ว

    Amazing explanation. Thank you!

  • @luminoussheep5270
    @luminoussheep5270 5 ปีที่แล้ว +1

    Thank you! Great explanation and examples to help defog FIs

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

    Excellent Video.

  • @ibrahimshaikh3642
    @ibrahimshaikh3642 5 ปีที่แล้ว

    I am really enjoying ur videos

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

    thanks pal, what software are you using to create the slides?, greetings from Ecuador

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

      I use Google Slides and Macbook inbuilt screen recorder

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

    Great Video. Waiting for More videos on Functional Interfaces in Java8 :)

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 ปีที่แล้ว

    Nice tutorials bro

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

    awesome 👍👍

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

    clean and right. Thank you!!!!

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

    Again, great explanation.

  • @Naton
    @Naton 5 ปีที่แล้ว +2

    what the...this is awesome!

  • @sumitbasu5146
    @sumitbasu5146 4 หลายเดือนก่อน

    You are the best

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

    Please make a video on Generics

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

    This was so beautiful.

  • @SachinSingh-sm7yg
    @SachinSingh-sm7yg 5 ปีที่แล้ว

    Please make a playlist on Operating Systems

  • @manishpundir28
    @manishpundir28 5 ปีที่แล้ว

    Nice video!
    One question - At 6:17 when we are writing the lambada representation, how does the compiler know that its Predicate Functional interface and not some other type of Functional Interface?

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว +2

      Because removeIf method in the list class only takes predicate, do compiler will check is lambda taking a value T and returning a Boolean.. then yes it's predicate.. and will be allowed. Even if developer wrote code thinking of different interface, if it matches the expected interface it will be allowed

    • @manishpundir28
      @manishpundir28 5 ปีที่แล้ว

      @@DefogTech I see. Thank you.
      And thanks for such a prompt response 😊

  • @JoshMolina
    @JoshMolina 5 ปีที่แล้ว

    Great explanation! Thank you.

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      You're welcome!

  • @madhurgwa
    @madhurgwa 5 ปีที่แล้ว +1

    You deserve lot more subscribers. :thumbsup:

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

    thank you

  • @abhilashgundlapally
    @abhilashgundlapally 5 ปีที่แล้ว

    please continue making these series of videos quicker

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      Yes sir.. plan is to create 2 videos a week now, and based on response will increase further

  • @Paavo93
    @Paavo93 5 ปีที่แล้ว

    So there are these 4 types of functional interfaces in Java, and everytime u code a lambda function, the compiler checks which one of these four interfaces match the given lambda function? Did I get this right?

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว +2

      Think more of it as, you pass lambda to a function.. that function definition has a parameter of some type (supplier, acceptor etc).. compiler will ensure lambda passed is of that exact type

  • @ЦветославЦветков-д7ч
    @ЦветославЦветков-д7ч 5 ปีที่แล้ว

    Great explanation about FI and Lambda. One question: As we know whenever we can use @Anonymous class, we can apply a lambda. Is it also true for FI?

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      Correct. Any FI can be used as Lambda

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

    Excellent explanation.
    I just don't understand why do you call Comparator anonymous inner class. I believe it's simply an anonymous class, nothing else

  • @amarnathreddy5387
    @amarnathreddy5387 5 ปีที่แล้ว

    Thanks @Defog tech

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      You're welcome!

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

    Why only one abstract method in functional interface??

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

    Yes!

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

    Best

  • @analogylibrary
    @analogylibrary 5 ปีที่แล้ว

    Do you work in S&P gurgaon ?

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      Nope, I am based out of Mumbai

    • @analogylibrary
      @analogylibrary 5 ปีที่แล้ว

      @@DefogTech Actually I had an interview today, and the guy who took it was sounding very much familiar with your voice, and interested thing was, his all questions were completely based on your video, i means the examples he was referring were totally same as yours. (Might be he is a regular viewer of your video). By the way your explanation is stupendously and amazing. Keep posting brother.

    • @DefogTech
      @DefogTech  5 ปีที่แล้ว

      Thanks a lot buddy! Thats a very interesting thing.. I hope your interview went well. Good luck :)

  • @vishwaratna
    @vishwaratna 5 ปีที่แล้ว

    Great!!

  • @aparichit_hu_me
    @aparichit_hu_me 6 หลายเดือนก่อน

    crisp...