Best of Foojay.ioSeptember 2024

  1. 1
    Article
    Avatar of foojayioFoojay.io·2y

    Java 23: What’s New?

    Java 23 introduces significant changes, including the removal of the String Templates feature and the addition of several new preview features like JEP 455 for primitive types in patterns and JEP 467 for Markdown documentation comments. Other noteworthy updates include the deprecation of many methods in sun.misc.Unsafe for safer alternatives and the ZGC garbage collector's generational mode becoming the default. Features like the Class-File API, Vector API, and Stream Gatherers remain in preview. The version also includes various improvements to the JDK and internal changes aimed at performance and security.

  2. 2
    Article
    Avatar of foojayioFoojay.io·2y

    A Fresh Look at Embedded Java

    Java, known for its 'Write Once, Run Anywhere' philosophy, continues to be a powerful choice for embedded systems ranging from in-car infotainment to home automation and medical devices. The language offers energy efficiency, developer productivity, and a stable runtime, with Azul providing builds of OpenJDK optimized for various platforms. Key solutions like CRaM and CRaC help reduce application startup time, making Java an ideal choice for rapid deployment scenarios. Azul also ensures long-term support, security updates, and legal protection for users of their Java runtime builds.

  3. 3
    Article
    Avatar of foojayioFoojay.io·2y

    JDK 23: Factory Pattern with Flexible Constructor Bodies

    JDK 23 introduces a new preview feature, JEP-482: Flexible Constructor Bodies, aimed at enhancing creational design patterns. This feature allows validation and handling of constructor arguments before calling `super(...)` or `this(...)`, improving code maintainability and reducing boilerplate. Examples demonstrate how this flexibility supports more functional coding styles, simplifying object creation and improving efficiency.