5 reasons to upgrade to J2SE 5 platform
Author: Calvin Austin, January 4, 2005
This article gives 5 reasons for upgrading to Java 2 Platform, Standard Edition (J2se Platform) 5.0. Each reason has been proved to 5.0 through a large amount of data and reference materials will greatly reduce development and operating costs.
J2SE 5.0 (Code Project Tiger) was released at the end of September 2004. It is one of the major updates of the Java platform for many years. The Java community cheers for its new features, but these new features are still unable to describe the features of this release. This platform can meet the high-level test requirements than in any versions of the past, and is more suitable for the development of mission-critical products.
The improvements in J2SE 5.0 are very much. This article selects the most important top 5 reasons. My choice is as follows:
1.1. Previous applications can run directly on 5.0
"In order to ensure that the backward height is compatible, the number of compatible tests is twice the 1.4 version ..."
- Calvin Austin Sun Microsystems
Existing applications can be used directly in J2SE 5.0 without redesigning or recompiling. Not only the investment in existing applications is protected, but the application has actually used the new Java runtime and benefit from it.
To ensure that backward height is compatible, the number of compatible tests is twice that in version 1.4. These compatible tests are only part of the Java test suite, which contains nearly 200,000 tests, which have many well-known Java products that are tested.
Since the application can run without modifying, what can J2SE 5.0 provide you with?
1.1.1. Improved performance
In J2SE 5.0, the performance of clients and server applications has been significantly improved. Because performance improvements are very obvious, I will list it as a second reason, and will be detailed later.
1.1.2. Monitoring and easy management
J2SE 5.0 introduces advanced monitoring and easy administrative frameworks and built it on a virtual machine of the Java platform (Java Virtual Machine or JVM). You can monitor JVM with an existing management console with industry standard JMX and SNMP protocols, and even detect low memory conditions. The JDK release provides a presentation named JCONSOLE. You can use it to evaluate the benefits of monitoring JVMs to learn how to expand your usability indicators.
1.1.3. New View
The Java platform has an insert-and-fel framework. The new maritime-style view is allowed to switch cross-platform applications to switch between oceans and native operating systems without rebuilding or recompile.
1.2. Faster
As can be seen from the figure below, many factors make the system speed of J2SE 5.0 have been significantly improved.
1.2.1. Shorten the startup time
If you have not launched a Java desktop app in recent years, you may have a surprise discovery. After introducing class data sharing (combined with other streamlined options), some application startup time is shortened by nearly 30%.
1.2.2. Excellent 64-bit performance
J2SE 5.0 64-bit JVM can provide logging results for AMD64 / Opteron CPU and SUSE Linux Enterprise Edition 8.0 SLES. In addition, the 32-bit JRE version can run at the same 64-bit operating system with the existing 32-bit web browser simultaneously.
1.2.3. Performance improvement
Now, JVM can self configure and optimize on the server level machine. The server-level machine refers to a machine with two or more CPUs, at least 2GB of memory. The server-based performance improvement eliminates the memory and optimization classes required for long-running applications. The result is no need to change a row code or provide any runtime option, you can increase the performance of 80% of the application server benchmark program!
1.3. Shortening the Development Time Integration Development Environment (IDE) to complete the regular task by using the automatic generation and wizard, thereby reducing the burden on the developer. J2SE 5.0 new language features further streamline the development process, whether you are using IDE or handcoded in a text editor.
1.3.1. Reduce the number of urban codes
Many improvements in the Java language have reduced the number of developers must encode. This picture is quantified for comparison with J2SE 1.4.2 versions. For example, an open source application server uses more than 2,000 anterators. By replacing with new cycle improvements, the amount of encoding is greatly reduced by up to 40,000 characters. For developers, this is equivalent to saving two hours of manual coding effort (calculated by 5 characters per second).
Figure 2: Reduced coding workload (less coding line)
The J2SE 5.0 platform adds Metadata to generate model file code and configuration information by using the tool, which is greatly short to short. In the case of the SOA and Web services defined by JSR 181, developers are expected to reduce 50% coding workload by automatically generating public code. [Note: The examples given above show that the metadata JAX-RPC is reduced from 209 characters to 95 characters, using the generics loop improvement from 139 characters to 100 characters, do not use generic loop improvement from 121 characters to 90 characters Automatic packing from 69 characters to 56 characters].
Metadata will reduce the workload of writing deployment description files. Some people suggest that EJB 3.0 defaults to generate configuration information from the application itself, so there is no need to deploy the description file.
1.3.2. Enhanced Error Inspection Storage
Search for "ClassCastException" and "Help" keywords will get 40,000 search results. The professional search in the Sun Forum reported 3,444 developer cases, they all requested to help track the uninterrupted runtime fault caused by the class conversion abnormal problem.
In 3,444 cases, 470 are involved in the Pre-Generics Vector class. From the perspective of investment returns, any runtime error may lose 10% of the company's site during the peak of business (if the income is 3 billion GBP, the loss is 300 million GBP). This has not been included in other factors such as human and goodwill.
With the time of compile time, the generic type is introduced to the Java platform, and the risk of runtime errors will be reduced by reminding developers if there is a type matching problem during development. In the 470 cases of the Forum, the key class libraries in the Vector and other JDK have been updated using Generals in J2SE 5.0, thereby avoiding repeated runtime issues that cannot be explained.
1.4. Applicable to mission-critical systems
Version 5.0 provides enhanced scalability, quality and deployment support.
1.4.1. Scalability
The Java platform design makes clients and servers have scalable. The 5.0 version introduced a powerful concurrent class library, which makes multi-thread programming more simpler simultaneous functions than before. The Java platform also supports 64-bit and multi-core and ultra-threaded chip technology. 64-bit JVM allows applications to use 4 GB of heap spaces, allowing to integrate with other 64-bit applications.
1.4.2. Quality
The J2SE 5.0 platform has been conducted in-depth tests on a set of extensive systems and operating system variants. There are many popular application servers and client applications in the test. The last test standard - the average fault pressure test time - not ending without any failure.
1.4.3. Deployment
Before J2SE 5.0, it is difficult to determine the transaction throughput of JVM products. New analysis tools and automated tuning features provide better product reasonable streamline information and configuration. When the application is put into use, it can be seen that the range of reduction in these functions is amazing.
In order to complete the deployment process in order to complete the deployment process, JVM can now use the industry standard tool to perform complete remote monitoring. This allows system administrators to successfully manage JVMs in a cluster or in a traditional vertical telescopic environment. The health status and availability of the deployed application can be monitored. In addition to the four technical reasons upgraded above, there is a lasting reason.
1.5. You have chosen an excellent company
J2SE 5.0 improvements are attributed to the Java community. Java J2SE 5.0 expert group include the following areas of the company: Apache, Apple, BEA Systems, Borland, Cisco Systems, Fujitsu, Hewlett-Packard, IBM, Macromedia, Nokia, Oracle, SAP, SAS Institute, SavaJe Technologies, Sun Microsystems, John Zukowski Osvaldo Doederlein and Juergen Kreileder.
A total of 16 working groups made from famous Java field experts. They organized 160 experts in the world to work together, eventually formed J2SE 5.0 Java specifications. This specification covers the update to the concurrency library from the language to the class compressed file API. For more technical details, see J2SE 5.0 in a nutshell. It is also possible to refer to the reference books given in the side of this page, and the like is increasing.
1.5.1. Book on J2SE 5.0
l Java 5.0 Tiger: a developer's notebook. David Flanagan, Brett McLaghlin. O'Reilly & Associates, 2004.
l Java 2 V5.0 (Tiger) New Features. Herbert Schildt. McGraw-Hill Osborne Media, 2004.
l Beginning Java 2, JDK 5 Edition. Ivor Horton. Wiley, 2004.
l Cay Java 2, Volume I, II (7th Ed.). Cay Horstmann, Gary Cornell. Pearson Prentice Hall, 2005.
L Just Java 2 (6th Ed.). Peter Van Der Linden. Prentice Hall, 2004.
L An Introduction To Programming And Object-Oriented Design Using Java 2, 2nd Ed. Jaime Niño,
Frederick
A. Hosch. Wiley 2005
l The Java Class Libraries Poster: Java 2 Platform Standard Edition 5.0 (8th Ed.). Patrick CHAN, ROSANNA Lee. Addison-Wesley Professional, 2005.
L Objects, Abstract, Data Structures and Design Using Java Version 5.0. Elliot Koffman, Paul Wolfgang. Wiley, 2004.
1.6. Conclusion
This article lists five important reasons I use Java 2 Platform, Standard Edition (J2se Platform) 5.0. (This article does not cover all functions of the client or server side). All information about the platform can be obtained from SCSL and Java Research Library from SCSL and Java Research Library, which helps you make your own decisions. Please contact us through the Community Forum and let us share your views on the J2SE 5.0 version. The following tools and applications utilize the J2SE 5.0 enhancement, thereby increasing the efficiency of developers.
l New J2SE 5.0 enhanced Tools and Applications
l Java System Application Server 9
l NetBeans 4.0
l Eclipse 3.x
l Borland JBuilder 2005 - Wily Introscope