This video will explore the Optional class and the API methods that are introduced with it in Java 8.
The Optional class will enable you to check for null, perform default operations if a value returns null, and also use custom logic as a response on a single line.
No longer will you be required to perform repetitive and cumbersome null pointer checks in your code as you can
conveniently handle potential nulls values with the Optional class API.
🕒 Timestamps 🕒
00:00 - Intro to Optionals
01:55 - Creating an Optional
03:18 - Optional.OfNullable
04:13 - Checking an Optional value
06:33 - Assigning default values
En esta página del sitio puede ver el video en línea New to Java 8: Optionals - Java Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Aneesh Mistry 08 noviembre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 802 veces y le gustó 17 a los espectadores. Disfruta viendo!