OptionalInt, OptionalLong and OptionalDouble in Java

The OptionalInt, OptionalLong and OptionalDouble in Java are container objects which may contain a int, long and double value respectively.

May 10, 2021

Optional – New methods in Java 9 through 11

Optional was added to Java 8. This post explains the new methods or APIs added to the Optional class in Java from Java 9 through 11 with examples.

November 18, 2019

A Complete Guide to Java Optional

Optional is a container object added to Java 8+ that is used as a wrapper over some value. It provides a mechanism to represent “no result” for a method.

November 11, 2019