Last month’s JavaOne conference—our first in-person get-together since the start of the pandemic—celebrated all things Java. Great people, interesting projects. Or is that great projects and interesting people? Either way, the best part of that experience was seeing so many friends and colleagues. (Well, the other best part was taking part in Thursday’s community keynote, “The Future of Java Is You,” where I got to talk about Java Magazine.)
I’d like to call your attention to the following resources about JavaOne:
Build smarter Java types with records and enums A type defines a set of values. Historically developers haven’t been very good at using encapsulation to ensure that objects stay within a type’s set of values. In response, this article by Bruce Eckel introduces a functional approach to Java type design using Java’s new record keyword to guarantee that each constructed object is a legal value.
What to expect on the new Java SE 17 developer certification exam Oracle University’s Java SE 17 Developer 1Z0-829 exam crams an enormous number of wide-ranging objectives into remarkably few questions—with rather limited time to complete the work, notes Simon Roberts. Fifty questions in 90 minutes, in fact. Is that enough time? It is if you know your stuff well and can think fast under pressure, which does sound a bit like the real world of professional programming.
Curly Braces: Recursion and tail-call optimization There are plenty of valid uses of recursion in Java, such as in searching, sorting (for example, the Towers of Hanoi problem), and machine learning (due to the hierarchical structure of applicable datasets). But the truth is, due to stack concerns and the perceived complexity of recursion, Java developers generally write loop-centered algorithms instead. Eric Bruno digs into the situation.
Book review: The Well-Grounded Java Developer, second edition Andrew Binstock explains that the second edition of this tome—written by Ben Evans, Jason Clark, and Martijn Verburg—is intended for practitioners who want to deepen their understanding of Java and understand the new features. After all, due to the large number of deployed applications still running Java 8 and Java 11, many developers do not have the opportunity to use the new features in their daily work. This book is for all developers trying to keep up with the changes.
Java Magazine is a deep dive into Java and the JVM. Find detailed explanations about the language and the platform written by experts and members of the Java development team.
Join a quarter of a million subscribers in getting useful, authoritative programming information delivered directly to your inbox.