Error-handling and cancellation are streamlined, improving reliability and enhancing observability. Structured concurrency features an API to simplify multithreaded programming and treats multiple tasks running in different threads as a single unit of work. Minor changes since the first preview in JDK 19 include a small number of API changes (made permanent in JDK 19) and degradations to ThreadGroup (also made permanent in JDK 19). This capability will fundamentally change how Java applications are scaled, according to Oracle. Virtual threads, in a second preview, are lightweight threads that reduce the effort of writing, maintaining, and observing high-throughput concurrent applications.The vector API previously has been incubated in JDK 16, JDK 17, JDK 18, and JDK 19. This would achieve performance superior to equivalent scalar computations. The vector API proposal, not officially added until just a few weeks ago, would introduce an API to express vector computations that reliably compile at runtime as optimal vector instructions on supported CPU architectures.These are the specifics on the seven new features in JDK 20: JDK 21, due in September, will be a long-term support (LTS) release, backed by multiple years of support. Ī short-term release supported for six months, JDK 20 follows the September 20 release of JDK 19. The seven features officially marked for the release, all of which are either in an incubation or in a preview stage, also include a vector API, scoped values, record patterns, pattern matching for switch statements and expressions, and a foreign function and memory API. The latest upgrade of standard Java, JDK 20 features incubation or preview versions of seven new capabilities including virtual threads and structured concurrency. Java Development Kit (JDK) 20 is now available as a production release from Oracle.
0 Comments
Leave a Reply. |