Is Java Optional useful?

By the way, here is how Optional is described in the Java SE 11 documentation: “ Optional is primarily intended for use as a method return type where there is a clear need to represent ‘no result,’ and where using null is likely to cause errors .

Sizin İçin Seçtik  How do I stop null check in Java 8?

Leave a Reply

Your email address will not be published. Required fields are marked *