Java Cup
Inside Java

News and views from members of the Java team at Oracle

Where to Use Optional - Inside Java Newscast #19

Is it ok to use Optional as parameter type? Overloading is an alternative, but how well does it stack up? Thoughts on this question (and other Optional-related ones) can usually be put into one of three (and a half) categories.

Show Notes

Overloading:

Discussing Optional:

Optional camps:

Additional Resources

The Inside Java Newscast is a monthly YouTube show - check out the YouTube playlist for all the episodes. Since 2026, we also publish it as a podcast. For more Java news, subscribe to our RSS feed and follow @Java on X.

Contact us.