Java 8 Streams | Optional Usage and Best Practices | JavaTechie

preview_player
Показать описание
This tutorial will guide you java 8 Optional and its usecase with stream API
Content :
What is Optional ?
why Optional ?
When to use Optional ?

#javatechie #java8 #Stream

GitHub:

Blogs:

Facebook:

guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie

Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
Рекомендации по теме
Комментарии
Автор

Directly to the point, no lag, crisp & clear. Keep sharing the content like this 😊👍. Now I know about Optional class. Thanks :⁠-⁠)

meevizagabbai
Автор

showing documentation first is a solid move. solid tutorial. thanks

abhilashpatel
Автор

you are a superb teacher.... I wish I could have come across your channel few years ago... I would be at a different level of java developer.
I find all your videos quite engaging, crisp and informative.
Keep sharing your knowledge with us.

kumarsaroj
Автор

thank you very much for the clear explanation .your videos make the concept clear.

sowjanyapeddiraju
Автор

Thank you for the java course
You are legendary

seyhaseng
Автор

As usual awesome explanation. Great work Bro!

nirmesh
Автор

Thanks for such easy and wonderful explanation...!

amolghule
Автор

Thank you, Only thing is I don't see any difference against checking 200 fields with null check, now this would be checking 200 fields with Optionals/ifPresent etc...

diegoramos
Автор

You can use Ctrl + d shortcut to copy paste any line.

vikasbaghel
Автор

There are many good teachers. But you are one of the best among them.👏👏👏

LwP
Автор

Please make the ads in the beginning of your videos skippable.

rishiraj
Автор

1. Here also need to check whether value is present or not using isPresent() then what is the use of this for that if statement is also required.
2.in case or orelse, i dont want to set some value if is it null then we need to checked by ispresent() ...so how we can say that its resolved our null check problem?

AvinashKumarInsights
Автор

It's worth to point out that any statement inside ".orElse()" is ALWAYS executed.
for example: try calling a function with a print inside ".orElse()".
The print statement will be executed regardless of the whether the object is null or not.

This might be cause a problem if in the ".orElse()" is an expensive function call (like a database query or a network request).
So, it's recommended to use ".orElseGet()" in that case.

Vogel
Автор

Hi master, very much clear but still we are checking so many conditions for null checks, where actually it's used better than checking the null check in java7

praveenreddy
Автор

@21:00 best practice, watch this video completely

overview
Автор

If we use Optional.of() when we know the object is not null, then what is the purpose of using it?

vaibhavkalgude
Автор

Thanks for posting .. needed content...you explains very well..👍

ramvillagetraveller
Автор

Great content. Tricky examples... Thank you so much sir ❤❤

supun_sandaruwan
Автор

Ways to create Optional class
empty
of
ofNullable

rk
Автор

Hi @java Techie, Is java is purely object oriented programming?

sethunest
join shbcf.ru