Java Development Kit (JDK) 18 is now available as an official production release, along with Java 18. The new version of standard Java JDK 18 was announced by the Open JDK group and Oracle released the new version under a commercial license for those using the Oracle JDK release as part of an Oracle product or service, or for those who want to be able to get commercial support.
Improvements to the new release include a simple web server for prototyping and testing, and the ability to add code snippets in Java API documentation.
The simple web server is very simple; you get a command-line tool that starts a minimal web server that serves static HTTP files only. No CGI or servlet-like functionality is available. The JDK team says the tool will be useful for prototyping, ad-hoc coding, and testing purposes.
The new release also includes the ability to add code snippets in Java API documentation. The reason for this addition is to help validate source code fragments by providing API access to those fragments. The OpenJDK group says that:
"Although correctness is ultimately the responsibility of the author, enhanced support in javadoc and related tools can make it easier to achieve."
UTF-8 becomes the default charset of the standard Java APIs in this version. This means that APIs that depend upon the default charset will behave consistently across all implementations, operating systems, locales, and configurations, and will help make Java programs more predictable and portable when their code relies on the default charset.
There are also several incubator APIs included in this release, starting with an updated version of the incubating vector API that can be used to make use of CPU architectures that provide scalable vector extensions.
The incubating Foreign Function and Memory API has also been updated. This lets Java programs interoperate with code and data outside of the Java runtime. The API handles invoking foreign functions and memory so Java programs can call native libraries and process native data "without the brittleness and pitfalls of JNI". A third incubator is pattern matching for switch. This provides a way to use pattern matching for switch expressions and statements, along with extensions to the language of patterns.
The final release candidate of .NET 10, the platform created from a combination of .NET Framework and .NET Core, has been released. Overall, this release focuses on quality and stabilization [ ... ]
Google has updated its Agent Development Kit for Java to add integration with the LangChain4j LLM framework. This expands the range of large language models available to users of the development kit t [ ... ]