Download a PDF of this article
Java developers like knowing how to do things better. They also like knowing how things work—the why of the Java language and JVM. This is clear when you peruse the most popular articles published in 2021. Thanks to state-of-the-art metrics, it became obvious that people really want to read about cutting-edge Java features, such as the JEPs in JDK 16 and JDK 17, as well as broad initiatives such as Project Loom.
Congratulations to Ben Evans, who scored three out of the top 10 slots. (He was the most popular author in 2020 as well.)
And now, without further ado, the Top 10 Java Magazine articles published in 2021.
By Ben Evans
See how virtual threads bring back the old days of Java’s green threads—that is, Java threads not tied to operating-system threads.
By Johan Janssen
Here’s what you need to know about code migration from the previous Long-Term-Support versions of the platform: Java 11 and Java 8.
By Alan Zeichick
Read how Java projects such as Loom, Panama, and Valhalla are laying the foundation for the future of the platform.
By Alan Zeichick
The Java Champions say these are a few of their favorite things.
By Ian Darwin
Use these Java language improvements to make your code easier to write, read, and maintain.
By Andrew Binstock
Temporary files are frequently used in testing and in production. Here is how to use them.
By Venkat Subramaniam
Learn how to use lambda expressions to greatly reduce code clutter.
By Alexandra Weber Morales
Java is critical to how stock markets run, as the language’s popularity created a virtuous cycle for financial companies.
By Ben Evans
The need to encapsulate the runtime is fundamentally caused by Java’s nature as an open programming environment.
By Ben Evans
Look into the bytecode to see how the platform handles lambdas.
When the Java Magazine team examined the metrics, a few articles stood out because they were among the most-read of 2021—but they were published earlier. They are well worth reading (or rereading).
Published in 2019:
By Raoul-Gabriel Urma and Richard Warburton
ZGC, Shenandoah, and improvements to G1 get developers closer than ever to pauseless Java.
Published in 2020:
By Alexandra Weber Morales
The scope of these applications runs the gamut: space exploration, video games, machine learning, genomics, automotive, and cybersecurity.
The most popular quiz-related article read in 2021 wasn’t a quiz, and it was actually published in 2020:
By Simon Roberts and Mikalai Zaikin
You now need only pass a single exam to become a certified Java SE 11 Developer.
Alan Zeichick is editor in chief of Java Magazine and editor at large of Oracle’s Content Central group. A former mainframe software developer and technology analyst, Alan has previously been the editor of AI Expert, Network Magazine, Software Development Times, Eclipse Review, and Software Test & Performance. Follow him on Twitter @zeichick.