Optionals In Java - Simple Tutorial

preview_player
Показать описание
Full tutorial on Optionals in Java!

FlexiSpot Pro Plus Standing Desk E7

#MyFlexiDesk #flexiblewfh

Optionals were added in Java 8, but can be a confusing thing to learn. This tutorial will walk through all of the aspects of Optionals in Java detail, then walk through step by step when and how to use optionals in your own code!

If you're confused by Optionals in Java, either just what they are and why they exist in general, or how to code to use them in Java, you're in the right place!

Learn or improve your Java by watching it being coded live!

Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

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

This is the gold standard of coding tutorials, thanks for such well-structured info

stevenschelling
Автор

You know how I am certain this is the best Java channel? I have no interviews to crack, I have no exams to clear and I'm still here learning because it just is explained in such an interesting, problem-solution kinda way.
Brilliant work, John!

YatiAcharya
Автор

My coding exam is in just about a month - and I would like to thank you, John! You have helped me so much. If I pass, thats because of you. Love your channel! Greetings from germany. :)

nikamz
Автор

i just started my internship for the summer and the code they have us working with has a ton of optionals, which was something i had never heard of. You’re videos are truly always a highlight to my day and explain it so neatly and concisely, not to mention the timing! please keep doing what you do

Cloydz
Автор

I just started watching your channel and I love your calm and reassuring way of explaining complex coding aspects! It motivated me to work a little harder on my own projects, unlike the often condescending explainations of the teachers at my university. Thanks John!

LightningLion
Автор

I don't usually comment on any youtube videos. But here John, You are doing an excellent job describing topics in a simpler manner. Thank You.

midhunmadhu
Автор

Null safety is one of the reasons I fell in love with Kotlin. It's caught me out so many times and helped me to think about where NPEs might be found even when working in other languages.

zaph
Автор

Love the cat example and box metaphor! :) 4:45

gulbalasalamov
Автор

Great job, John. Can you please cover logging and best practices for it?

RsZ
Автор

I've a exam on Java tomorrow and I've to say your videos on Java are probably the best on YouTube. Will be binge watching the your entire Java playlist tonight.

sg
Автор

Cat be like : things i need to comply with for some food..

biswarana
Автор

It's very difficult to find such well explained, well paced and easy to understand coding tutorials on youtube, thanks and congrats for having such good content.

juanantoniosicardocontrera
Автор

What an excellent video! I have studied Java but not worked with it and now I try to polish my knowledge to get a job in Java. I want to thank you for your easy to understand and amazing videos that take up very important and interesting topics. You're an amazing teacher and you get excited to learn more to look at your videos :)

christianolsson
Автор

Always wondered what the true benefit of optionals vs null checks is. This really cleared things up for me!

adrianfiedler
Автор

Dude, I can say for sure that your way of explaining is the best I've seen on Youtube ever. That's considering that I'm not a native speaker. Thank you a lot.

whiterabbit
Автор

I love your channel for the calm and precise manner you describe things with - and also the nerdy references ahah

MariaBose-kyjf
Автор

Nice solution for dealing with null exceptions. So much cleaner than use ifs to check the return value. Hopefully some day java implements de null safe operator like groovy or kotlin. Great video John!

rlasc
Автор

So good..guys, just keep coming back to John's channel. He explains everything with the greatest of ease.

gerdsfargen
Автор

please keep blessing us with such non trivial concepts. much love !!

chinmayrath
Автор

Have been waiting for this for a long time, thank you!

MrLuMax