InfoQ Homepage Java 21 Content on InfoQ
News
RSS Feed-
Java Gets a Boost with the Record Pattern, Enabling More Expressive Coding
JEP 440, finalizing Record Patterns, has been promoted from Proposed to Target to Targeted status for JDK 21, following feedback-driven enhancements in JEP 432 and JEP 405. Record patterns now allow for powerful data navigation and processing when used with type patterns. The main change from JEP 432 is the removal of record patterns in the header of an enhanced for statement.
-
Java Gets a Boost with String Templates: Simplifying Code and Improving Security
JEP 430, String Templates (Preview), has been promoted from Proposed to Target to Targeted status for JDK 21, a feature JEP type that proposes to enhance the Java programming language with string templates, which are similar to string literals but contain embedded expressions incorporated into the string template at run time.
-
JEP 444: Virtual Threads Arrive in JDK 21, Ushering a New Era of Concurrency
JEP 444, Virtual Threads, was promoted from Candidate to Proposed to Target status for JDK 21. This feature offers a lightweight threading model to simplify the creation, management, and monitoring of high-throughput concurrent Java applications, allowing developers to efficiently handle millions of tasks and make better use of system resources.