Java Cup
Inside Java

News and views from members of the Java team at Oracle

Java 21's New (Sequenced) Collections - Inside Java Newscast #45

In Java, all lists as well as some sets and maps have an encounter order, meaning their elements have stable positions. But the collections framework had no type to capture this property and define operations on like getting or removing first and last elements or iterating in reverse order. "Had" because thanks to the addition of sequenced collections through JEP 431, this will change.

Show Notes

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.