Java Method Reference & Stream API : Learn to Write Clean Code

preview_player
Показать описание
In this video, We will learn about the method reference in java 8 and how it really works.

Method references are introduced first in Java 8 and they can substitute a Single line lambda where within a lambda we just call a method.

Method reference in java are very readable helps to write clean code.

In this video We will learn the following :
1. what are Method references in Java ?
2. Need of Method references in Java
3. Using existing functional interfaces to create method reference
4. What are the different types of method reference we have in java 8
5.How to use method reference with Stream API

We will talk about all the types of method reference with example.

Type 1 : Reference to a static method
Type 2 : Reference to an instance method of a particular object
Type 3 : Reference to an instance method of an arbitrary object of a particular type
Type 4 : Reference to a constructor

timestamp
-------------------
00:00 - Method Reference : Up Next
02:56 - What is method reference in Java ?
08:17 - Type 1 : Static Method Reference
11:51 - Type 2 : Reference to an instance method of a particular object
12:47 - Difference between Direct Method call vs Method Reference
17:52 - Type 3 : Reference to an instance method of an arbitrary object
32:16 - String::Concat and BiFunction
39:31 - String::toUpperCase
59:49- ArrayList::add
01:09:41 - Reference to a constructor
01:13:54 - Employee::New
01:15:16 - Referring to a one arg constructor
01:20:01 - Stream API & Method Reference

For more free/paid courses visit

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch my new Hello spring boot series

Watch Spring boot Hot topics

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Follow me on Insta
Рекомендации по теме
Комментарии
Автор

Learned a lot
Waiting for the next video

ajaysubramaniam
Автор

Abhilash it feels blessed when we learn concrpts from u as u have strong grip on topics

bipinsingh
Автор

Always you come up with the wounderful content. Eventhough i know method reference you video is giving more confident

thiyamybabygirl
Автор

Thnaks Sir, helping me to understand stream api

Mohamed-ufjh
Автор

Nice video... helping me to understand stream api in deeper.

sohangour
Автор

Very Helpfull sir for a very long i was avoiding this topic but now i m able to get it

kaifsiddique
Автор

I am following this and I'm understanding and you are absolutely going in right way, Thanks sir.

akshaymahajan
Автор

3 Aug 2024 At 05:13 PM :helped me a lot . Thanks

yogeshjoshi
Автор

This helped understand concepts pretty well, Thanks!!

yogendrachaudhari
Автор

This video helps a lot to understand method reference in deep .

asutoshkumar
Автор

59.15 Hey Abhilash.. Yeah I am following this and understood the concepts clearly.. you are on the right track :)

vivekprasath
Автор

Hi Abhilash, the content is awesome in your channel. thank you and please continue to do more videos that will help java community. i have never found a content creator who explain in detail on particular topic. fellow developers.. please support this channel

srikanthreddy
Автор

I am able understand everything, thank you

nehatiwari
Автор

As always nice video
learned a lot
thanks you so much !!!

rohitgavande
Автор

finallly, understood method reference.

harkeshbirman
Автор

You are one in Incredible India as Incredible Indian.all my corner case doubts about method references are solved now. thank you very much Abhi. Do you teach LLD or HLD? I want to join at the earliest possible batch?

rapoliit
Автор

Bro we need another interview series including HLD LLD ..can you please make it happen

altrinruban
Автор

59:24 > I am following this
I am understanding..

thiyamybabygirl
Автор

Hey Abhilash, just a suggestion and request, please make a video on the interview questions on Java 8 programs.

nikhilraj
Автор

Can you create playlist on FuntionalInterface or share any good reference, to understand the concept of Consumer predicate etc

ulhasch
join shbcf.ru