Learn Java Optionals in 6 minutes | Functional Programming in Java

preview_player
Показать описание
#sponsored Learn how to use Java Optionals to make your code more secure - and prevent those null pointer exceptions!

Thank you Pluralsight for sponsoring this video! Check out my #bitbattle on automation with Michael Bender
#bitbattles

TikTok for programming tips on the go

Also check out...

Support me on Patreon!

Check out my Python Basics course on Highbrow!

Free HACKATHON MODE playlist:

MY FAVORITE THINGS:
Uber Invite Code: kathrynh1277ue
Postmates Invite Code: 7373F

Want to BINGE?? Check out these playlists...

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

I feel like there is an important piece missing here, which is the whole reason to have Optional instead of nulls in the code -> optionals are visible in the typesystem. You immediately know if certain function might return "empty" value and you have to handle it explicitly in the code. Nulls in the other hand are "invisible", just from looking at function signature you don't know if it might return null or not.

Pharisaeus
Автор

im java developer 15 yrs and thats best clever explanation of Optionals

petmik
Автор

I don't know what magic this is but just this month i started as a working student for backend development. Two of the things i don't know yet but of which there is a lot in my company's code are streams and optionals - so thanks for making your last two videos exactly about those things, the last one already helped me a lot!

ronaldbaumgarten
Автор

I watched video about same topic from Coding with John channel and I must say that he have the better desk.

provokator-provocateur
Автор

I'm so glad found you on LinkedIn Learning! Love your content, so helpful for a Junior Java Developer like me! Thank you so much!

jormencar
Автор

I actually didn’t know Java had optionals before watching this video 😅 pretty neat!

Landon_Hughes
Автор

The video is both engaging and informative. I Like it. Is there a situation where you wouldnt use optionals? I cant think of one...

a.koomson
Автор

could you do some vedio about spring security and thanks for your efforts😊.

prodsg
Автор

Why not to try return String type of method? Then we dont have to use optionals?

enlightened
Автор

Hi, a little question, in your opinion, the best choice to work with android and new applets is Java or Kotlin and why? Happy coding!!! Greetings from Colombia ;)

albertjjimenezp
Автор

Good job bytes, can I ask you a question? how many languages do you know? :) and keep on rolling!!

fernandorg
Автор

Hi, which cloud provider (AWS, Azure, GCP) do u or your company often use for Java Spring applications?

sonxuannguyen
Автор

that's awesome how about javascript?

cristianscript
Автор

I know this question is quite absurd but I want to know the reason of learning Java now, Since we have many great programming languages like Python, JavaScript, C++ etc.
Plzz reply ..

adeshmishra
Автор

I watched this and have no idea what was talked about

youngjinsu
Автор

She said the F word. I am scarred for life.

tomsetberg
Автор

Blondie, you don't need to write "System.out.println..", just "SOUT" and press tab 😉

djamsterdam