Should I return Optional Java?

When to Not Return Optional. Because Optional is a wrapper and value-based class, there are some operations that can’t be done against Optional object. Many times, it’s just simply better to return the actual type rather than an Optional type .

Sizin İçin Seçtik  What is band 20 of frequency?

Leave a Reply

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