Java Method References - A Beginner's Guide

preview_player
Показать описание
Discover the power of Java Method References in this beginner-friendly guide! Learn how to write cleaner, more expressive code with this Java 8 feature. We'll cover:

- What method references are and why they matter
- The four types of method references
- Practical code examples for each type
- How method references can boost your productivity

Whether you're new to Java or looking to level up your skills, this video will help you master method references and improve your coding efficiency. Get ready to simplify your lambda expressions and streamline your functional programming approach in Java!

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

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

I still remember how Intellij taught me about this feature of Java ! It was the first time i learnt something from an IDE. Great experience 😅

pacifiquemunzihirwa
Автор

Hi Dan, can you please make a video about heap and thread dumps. How can we investigate them, which valuable data can we retrieve, and how to operate efficiently with it

pip
Автор

I already knew that, but it was nice to make sure that i still had that knowlage!
always glad to watch your videos

mrMarseleene
Автор

More quality java content is always nice, ty Dan

swipped
Автор

The way you are explaining is fascinating ❤

MohamedDernoun
Автор

If you're planning on doing more of these Java ones, could you consider a Beginner, Intermediate and Advanced tutorial on Optional. Particularly focusing on refactoring a method that checks for null the old way.

LukeGJPotter
Автор

Hey Dan nice vidoes, please show more content about stream processing with spliterator and how to work efficiently in parallel

joachimdietl
Автор

Hi Dan, could you look into reactive Java? Ive seen it used alot with Spring.

Balgoriusis
Автор

Another great video. Thanks Dan! One thing I'm still puzzling over: Why the :: syntax? If I want to use a method I use the dot operator, like: object.method() and in some other languages, if I want a reference to the method I can just use the dot without calling the method to get a reference to the method, see: object.method. Is there a reason why there's a specific syntax that seems to me to be dedicated to getting a reference to a method, as opposed to using a syntax that is consistent with accessing other properties on an object (the dot operator)? Maybe there is something fundamentally different about accessing method references vs other object properties that I am missing because Java is not my first programming language?

alexanderbrown
Автор

Good idea Dan, I would like to learn Java from you.

alibabathvs
Автор

5:35 but println is not a static method. Isn't that what you call a bound receiver?

housemajaliwa
Автор

How does using unnamed classes gonna change the current spring boot development ?

Reclusive_shayar
Автор

Can you make a video about spring websocket (and security)?

kacpergrabiec
Автор

if you're using java 21, why not use a unnamed class, new { ... } and you avoid to write all that bolierplate code

haroldpepete
Автор

Without IDEs to help it make it harder to read the code as the signature of the method is hidden by this syntax. To be fair almost very one uses IDE. Conciseness is not always good. I feel the same way about Java allowing dropping types for lambdas.

SandipChitale
Автор

System.out.println is NOT a static method

bernardobuffa
Автор

I hope you are well. Visiting your channel I have seen your all videos and content are very good but your video SEO optimization is not professional. Perhaps you are busy for managing the channel

mopidhul