Differences between Java 5.0 and Java

Source: Internet
Author: User

The detailed differences are as follows:
1. performance and quality:

Java 6 is different from Java 5. Without new language features, it is a stable and improved version. Java 6, both on the server side and on the client side, has increased the percentage by two digits. Java 6 performance has increased by 20%-40% according to different fields. In terms of quality, there are only 100,000 testing programs for compatibility testing, and Java 6 is the first version in open community mode, the Mustang Community provides a large number of error reports for Java 6 development. These errors are discovered in the early stages of version development in a timely manner, which greatly improves the quality of this version. According to the feedback from various communities on Java 6, from the beginning of Beta, people generally think that this version is of relatively high quality.

2. New security features:

Java 6's new security support mainly includes: JSR 105: XML dsig API/implementation, local platform GSS/Kerberos integration, JSR 268: smart card I/O API, access to local PKI and encryption services on Windows platform, Java GSS support for SPNEGO protocol, JAAS-based LDAP authentication, PKI certificate path generator, and Checker Improvement and so on.

3. desktop applications and deployment:

Java 6's improvements to desktop applications should be said to be one of the biggest highlights. It is not as easy to notice as security. Many people think that Java 6 is a version for desktop applications. Swing has been improved in many aspects: lookandfeel, which greatly improves the performance, reversed fonts, and grouplayout integration.

4. pluggable annotation (Pluggable annotations ):

Supports custom tagging, And you can directly add scripts for processing tags to virtual machine parameters.

5. compiler API:

Java 6 provides compiler APIs that allow you to program and implement runtime access and control for the Java compiler.

6. Virtual Machine Monitoring and Management:

The current virtual machine tools, including monitoring, tuning, debugging, and management, can be dynamically connected to control when Java programs are running. You do not need to set the options before starting the Java program, this provides great convenience for debugging of long-running service programs on the server, such as application servers and web servers. These programs often need instant environment debugging when problems occur, it is impossible for you to disable them, and then use the debugging option to restart and debug. This is very useful.

7. New desktop APIs:

Including swingworker, jtable sorting and filtering, and grouplayout. Swingworker can help you compile a Java User Interface with fast response speed.

8. database access:

The new JDBC 4.0 API, as well as a pure Java Database (formerly Apache Derby), allows you to change the database as information storage when writing small Java applications.

9. Script Language Standardization support:

Java 6 standardizes script support, including popular jrubby, JavaScript, and groovy. The standardization of scripting language has been seen by many as one of the main highlights of Java 6.

10. Full support for Web Services:

It provides easy-to-use APIs that allow users to easily develop web services without third-party support.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.