New to Java 8: Optionals - Java Tutorial

Veröffentlicht am: 08 November 2021
auf dem Kanal: Aneesh Mistry
802
17

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


Auf dieser Seite können Sie das Online-Video New to Java 8: Optionals - Java Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Aneesh Mistry 08 November 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 802 Mal angesehen und es wurde von 17 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!