Java Cup
Inside Java

News and views from members of the Java team at Oracle

Getting Rid of Unused Variables (Finally) - Inside Java Newscast #46

JEP 443 proposes to add unnamed variables and patterns to Java. With them, unused variables and patterns can be replaced by a single underscore, which helps writing readable and maintainable code.

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.