Optional type introduced in Java 8 is a new thing for many developers.

Is a getter method returning Optional<Foo> type in place of the classic Foo a good practice? Assume that the value can be null.

6 Answers
6

Leave a Reply

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