βοΈ Exploring Optionals <?> in JAVA
01.Coding with Light
This option <?> was added in JAVA 8.
The mascot Duke really likes animals.
(It is one of the illustrative ways to better understand the code).
Officially, developers and designers can use images and play with the Duke mascot.
The Optional <?> class includes methods that allow you to explicitly address cases where a value is present or absent.
Practical Example = The cat that comes out of the box is an option.
Helps simplify code and avoid NullPointerException errors.
1 PracticalExample.java (Opcionals/Cat)
π To the next!