Method Reference In Java 8 - How it really works ?

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 44

  • @Hari54307
    @Hari54307 25 дней назад +1

    you're the best teacher to teach any concept like a pro, Thank you so much for these sessions. and providing it for free.

  • @bipinsingh1490
    @bipinsingh1490 3 месяца назад +5

    Abhliash i have seen many youtube channel but one think i want to say u are the best and u explain everyconcept verywell with code

  • @lakshmojiseemakurthi2199
    @lakshmojiseemakurthi2199 3 месяца назад +3

    It's like a twist buster at the end, you have mentioned it would work only static and method arguments should match, but the end it it worked with String::UpperCase, which creates an enthusiasm on how it worked.

  • @asutoshkumar676
    @asutoshkumar676 3 месяца назад

    I've watched many videos on the Stream API, but none have been as clear as this one. Your teaching skills and explanations are excellent. Thank you for sharing such fantastic content.😇😇

  • @keerthanashiyam
    @keerthanashiyam 3 месяца назад

    That was an awesome explanation. I have read articles about method references but I understood it after watching this video only. Thank you for the video. 👏

  • @prasoonmishra3959
    @prasoonmishra3959 4 месяца назад +4

    Bro your videos is really awesome. Very premium content

  • @nikhilraj9524
    @nikhilraj9524 3 месяца назад

    I think you are the best on youtube.

  • @afzalmd23
    @afzalmd23 19 дней назад

    amazing👍

  • @rahulbhatanagar6175
    @rahulbhatanagar6175 3 месяца назад

    Loved your way of explanation. You are really a great teacher😍😇

  • @asifshaikh499
    @asifshaikh499 4 месяца назад +5

    Its very helpful brother, I need deep knowledge of exceptions and multi threading is so helpful for us if you make videos on this 2 topic

    • @SeleniumExpress
      @SeleniumExpress  4 месяца назад

      Sure, Asif ! I will gradually get you those contents.

    • @aibardulatov
      @aibardulatov 25 дней назад

      @@SeleniumExpress Yes please. Can you make video about multithreadding?

  • @villagesoftwareengineer
    @villagesoftwareengineer 3 месяца назад +5

    Haha, I've been using method-reference, but the light bulb just turned on! 😂😂😂😂

  • @mansinghyadav548
    @mansinghyadav548 3 месяца назад

    Knowledgeable video.waiting for stream api new video

  • @VietNguyen-vj4su
    @VietNguyen-vj4su 19 дней назад

    good content!!!

  • @MalobikaNandy
    @MalobikaNandy 3 месяца назад

    Thanks a lot!! Was eagerly waiting for this. It feels like I can understand most of the things if you explain it. 👍👍

  • @nasimkarpude1388
    @nasimkarpude1388 3 месяца назад +1

    Hi Abhilash.. your videos are awesome... Can you take one session on generics in depth and multi threading as well

  • @Vithal_Nivargi
    @Vithal_Nivargi 4 месяца назад

    Thanks ❤
    Please keep it up this series 🙏

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 3 месяца назад

    First half done!

  • @nani-yr5ip
    @nani-yr5ip 3 месяца назад

    Thank you abhi!!

  • @santhoshchandran6952
    @santhoshchandran6952 4 месяца назад

    Thank You Abhi..😂
    Nice one

  • @sourabhkalaskar-x5l
    @sourabhkalaskar-x5l 3 месяца назад

    @SeleniumExpress
    I've been following this series and the content is incredibly detailed. In the third video, you introduced parallel streams, so I was expecting the next video to cover that topic. However, the latest video is on method references, which feels like a break in the flow. When will you be uploading the video on parallel streams?

  • @smithaakutty124
    @smithaakutty124 3 месяца назад

    1st half done

  • @vijaykorke8837
    @vijaykorke8837 3 месяца назад

    Bro, where had you from last few months? We are waiting for you videos on java..

  • @santhoshchandran6952
    @santhoshchandran6952 4 месяца назад +3

    Can we expect Parallel stream next week?

  • @ajaysubramaniam4453
    @ajaysubramaniam4453 3 месяца назад

    Learned a lot. Big fan of your content! I have a question about method references. The main purpose seems to be code reuse. Since the methods already exist, why not just call them directly using the class name or object? For instance, instead of using a method reference like Collections::sort with an interface variable, we could just use Collections.sort() wherever needed. What specific advantages do method references offer?

    • @pradeepranjan1309
      @pradeepranjan1309 3 месяца назад +1

      Abhilash gave a great example with Collections.sort(), but method references really shine in scenarios involving the Stream API, where you often need to pass behavior as an argument.
      When using methods like filter(), map(), or forEach(), you need to provide a function that can be applied to each element in a stream. This is where method references or lambda expressions come in handy. They make the code more concise and readable.
      For example, if you want to filter a list of strings to find ones that start with a specific letter, you could use:
      List strings = Arrays.asList("apple", "banana", "cherry", "date");
      List result = strings.stream()
      .filter(s -> s.startsWith("a"))
      .collect(Collectors.toList());
      List result = strings.stream()
      .filter(String::isEmpty)
      .collect(Collectors.toList());
      In such scenarios, you can't directly call Collections.sort() since it doesn't fit the functional interface expected by the Stream API methods. Instead, using method references like String::isEmpty or Collections::sort as arguments allows you to seamlessly integrate existing methods into your stream operations.
      So, method references are especially beneficial for improving readability and reusability when working with streams and functional interfaces.
      ---Thanks

  • @alwaysLearner9
    @alwaysLearner9 4 месяца назад

    Hi, kindly do video on AOP

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 3 месяца назад

    Yes, I can use it for consumer

  • @depthprogramming9751
    @depthprogramming9751 2 месяца назад

    Hi avi your content is awesome how to by you course from Pakistan

  • @Helloworld-vs3ey
    @Helloworld-vs3ey 3 месяца назад

    I tried to buy the microservices boot camp course on your website but it says closed. How can I buy that course. Thank you.

  • @RanjanManas-s7d
    @RanjanManas-s7d 3 месяца назад

    Hii Sir,You are from odisha

  • @darneysam5340
    @darneysam5340 4 месяца назад

    Yes, its return type is void.

  • @srigakolapuatchuthasai6638
    @srigakolapuatchuthasai6638 4 месяца назад

    Thanks abhi ❤

    • @SeleniumExpress
      @SeleniumExpress  4 месяца назад +1

      Welcome! 🤗

    • @srigakolapuatchuthasai6638
      @srigakolapuatchuthasai6638 4 месяца назад

      @@SeleniumExpress Could you please tell me abhi other than this stream API playlist what will be the upcoming videos ?

  • @prabhakarpn427
    @prabhakarpn427 3 месяца назад

    Please continue core java concepts abhilash

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 3 месяца назад

    Where is the answer for how it really works?

  • @abhishekghosh5974
    @abhishekghosh5974 3 месяца назад

    The fake accent, is it really necessary?