The following describes selected improvements of the Java API. See the Java 23 release notes.
Java 23 is introducing the following API enhancements as developer preview or Incubator.
JEP 466 is continuing with Class-File API, standard API for parsing, generating, and transforming Java class files
JEP 473 is continuing with Stream Gatherers. This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations
JEP 480 is continuing with simplifying multithreaded programming by introducing an API for structured concurrency. Structured concurrency treats multiple tasks running in different threads as a single unit of work, thereby streamlining error handling and cancellation, improving reliability, and enhancing observability..
JEP 481 is continuing with scoped values, which enable the sharing of immutable data within and across threads. They are preferred to thread-local variables, especially when using large numbers of virtual threads
JEP 469 is continuing with Vector API, introduces an API to express vector computations that reliably compile at runtime to optimal vector instructions on supported CPU architectures, thus achieving performance superior to equivalent scalar computations.