Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the new features of Java9

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the new functions of Java9". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Modular source code

The JDK source code will be organized in a modular form, the generation system will be enhanced in modular compilation, and the boundaries between modules will be forced to separate at the time of generation. " The goal of Jigsaw is to design and implement a standard modular system for the Java SE platform, and apply the system to its own platform and JDK. Its main goal is to provide a simple scalable implementation for some small devices, improve security and maintainability, improve application performance, and provide developers with more development tools. " This is described in the JDK optimization recommendation.

2. Lightweight JSON API

This is an interface to generate documents and data streams using the JSON data exchange format, and in some cases, JSON can completely replace XML. "JSON can be used in Web services, and Java SE will be in JSON data format, which is the most needed feature provided in Java 9."

3. System process management

This upgrade will improve and improve the API that manages operating system processes. The current API can only force developers to use native code, but this upgrade also overcomes this limitation. In Java SE 7, there are great restrictions on the operation of local operating system processes, but the new API in Java 9 also needs to take into account the differences between different operating systems, especially Windows. "API needs to be designed to adapt to mobile devices with different operating systems and to be able to deploy and apply on these devices. At the same time, the situation of multiple Java virtual machines in the same operating system should also be considered." This is described in the JEP documentation.

4. Improve the competitive lock

The goal is to improve thread contention when accessing objects, as the document says: "improving the competition between locks is very beneficial to real-world applications."

5. Segmented code caching

This mainly divides the code cache into several pieces, each containing compiled code, which not only improves the performance of the program at run time, but also makes it easier to extend.

6. Intelligent Java compiler

The main purpose of this project is to improve the performance of the Java compiler so that it can surpass JDK in compiling large projects. The current implementation scheme is indeed very good, which not only improves the compilation speed, but also has the function of incremental compilation. However, as the code quality and stability are not yet satisfactory, so the project has not been released to the public, please look forward to it.

This is the end of the content of "what are the new features of Java9". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report