5 major reasons to upgrade to J2SE 5 platform

Source: Internet
Author: User
Tags contains new features reference version web services client
J2SE Author: calvin austin,2005 year January 4 This article gives an upgrade to the java 2 platform, standard edition  (J2SE  platform)  5.0 's 5 big reasons. Each reason is validated by a large amount of data and references to the fact that upgrading to version 5.0 will significantly reduce development and operational costs. j2se 5.0 (code-named Project tiger) was released at the end of September 2004. It is one of the major updates of the Java platform over the years. The Java Community cheers for its new features, yet these new features do not yet fully describe the features of this release. Compared with any previous version, this platform is more suitable for the development of mission-critical products, which can meet the high level of testing requirements. There are so many improvements in j2se 5.0 that it is not easy to choose the most important first 5 reasons. My selections are as follows:1.1.         previous applications can be run directly on 5.0 "to ensure backward compatibility, the number of compatibility tests is twice times that of the 1.4 version ..."? Calvin austin  sun microsystems existing applications can be used directly in j2se 5.0 without redesigning or recompiling. Not only are the investments of existing applications protected, but the application is actually using the new Java runtime and benefiting from it. To ensure backward height compatibility, the number of compatibility tests is twice times that of the 1.4 version. These compatibility tests are just part of a Java test suite that contains nearly 200,000 tests, with many well-known Java products tested. Now that the application can be run without modification, what can j2se 5.0 offer you? 1.1.1.     improved performance in j2se 5.0, the performance of both client and server applications has been significantly improved, and due to the apparent performance improvements, I have listed it as a 2nd reason, which is detailed later. 1.1.2.     Monitoring and manageability j2se 5.0 introduces advanced monitoring and manageability frameworks and builds them on virtual machines on the Java platform (Java virtual machines or JVMs). You can use an existing management console with industry-standard JMX and SNMP protocols to monitor the JVM and even to detect low memory conditions. The JDK release provides a name for JA demo of the console. You can use it to assess the benefits of monitoring the JVM to learn how to expand your usability metrics. 1.1.3.     New Impressions The Java platform already contains an insert perception (look-and-feel) framework. The new ocean-style perception allows cross-platform applications to switch between the impressions of the ocean and the native operating system without rebuilding or recompiling. 1.2.         speed faster from the following figure can be seen, many factors make the j2se 5.0 system speed has been significantly improved. 1.2.1.     Shorten startup time If you haven't started a Java desktop application in the last few years, you may have a surprise discovery. With the introduction of class data sharing (combined with other streamlined options), some applications have been shortened by nearly 30% start-up times. 1.2.2.     's outstanding 64-bit Performance j2se 5.0 64-bit JVM can be amd64/opteron cpu and suse linux  enterprise edition 8.0 sles  provides record results. In addition, the 32-bit JRE version can be run concurrently with an existing 32-bit web browser under the same 164-bit operating system. 1.2.3.     performance improvements Now, the JVM can be configured and optimized on a server-level machine. Server-level machines are machines that have at least 2GB of memory with two or more CPUs. Server-based performance improvements eliminate the memory and optimization classes that are required for long-running applications. The result is that you can increase the performance of the application-ordered server benchmark by 80% without changing one line of code or providing any run-time options! 1.3.         Shorten the development time the integrated development environment (IDE) eases the burden on developers by using automated builds and wizards to accomplish common tasks. J2se 5.0 's new language features streamline the development process, whether you're using the IDE or manually encoding in a text editor. 1.3.1.     reduce the number of developer encodings many of the improvements in the Java language have reduced the number of developers who must encode. The following figure is for comparison with the j2se 1.4.2 version,The reduction was quantified. As a practical example, an open source application server uses more than 2,000 iterators. By replacing it with the new loop improvement feature, the amount of coding can be reduced by as much as 40,000 characters. For developers, this is equivalent to saving two hours of manual coding effort (5 characters per second). Figure 2: Reduced coding effort (fewer coded lines) The j2se 5.0 platform adds metadata, generating boilerplate code and configuration information by using tools, which greatly reduces development time. In the case of SOA and Web services defined by jsr 181, developers are expected to reduce their coding effort by generating public code automatically for 50%. [Note: the example shown in the above illustration shows that Jax-RPC is reduced from 209 characters to 95 characters, using Generics's loop improvement from 139 characters to 100  characters, and not using generic loop improvement from 121 characters to 90 characters, Automatic boxing is reduced from 69 characters to 56  characters]. Metadata reduces the effort to write a deployment description file. It has been suggested that ejb 3.0 generate configuration information by default from the application itself, eliminating the need to deploy a description file. 1.3.2.     Enhanced error-checking store with Google search for "classcastexception" and "help" keywords will get 40,000 search results. The professional search on the sun  Forum reports 3,444 Developer cases, all of which are asking to help track unexplained run-time failures due to class conversion exceptions. Of the 3,444 cases, 470 were related to the Pre-generics vector class. From an ROI perspective, any run-time error during the business peak may lose the company's site 10% order income (GBP 300 million if the revenue is GBP 3 billion). This has not yet counted other factors, such as human and goodwill. As compile-time type-safe generic types are introduced to the Java platform, it is possible to reduce the risk of run-time errors by alerting developers to the existence of a type-matching problem during development. In the Forum's 470 cases, the vector and key class libraries in other JDK have been updated with the generics in j2se 5.0 to avoid recurring run-time problems that cannot be explained. 1.4.         for mission-critical system version 5.0 delivers enhanced scalability, quality, and deployment support. 1.4.1.     Scalability JThe AVA platform is designed to make both clients and servers scalable. The 5.0 version introduces a powerful concurrency class library, making multithreaded programming simpler and more powerful than ever before. The Java platform also supports 64-bit and multi-core and Hyper-threading chip technology. The 64-bit JVM allows applications to use more than 4 GB heap space and allows integration with other 64-bit applications. The 1.4.2.     quality j2se 5.0 platform has been thoroughly tested in a broad set of system and operating system variants. Many popular application servers and client applications are used in the tests. The last Test standard?? Average failure stress test time?? Complete with no fault at all. It is difficult to determine the transaction throughput of a JVM product until 1.4.3.     is deployed in j2se 5.0. New analytics tools and automatic tuning capabilities provide better product rationalization and configuration. When the application is put into use, you can see the scope of the reduction through these features is amazing. As highlighted in the previous 1th reason, in order to complete the deployment process, the JVM is now able to perform complete remote monitoring using industry-standard tools. This allows system administrators to successfully manage the JVM both in the cluster and in a traditional, vertically scalable environment. The health status and availability of the deployed applications can be monitored. In addition to the 4 technical reasons that have been upgraded above, there is one last important reason. 1.5.         you've chosen a good company. j2se 5.0 's improvements are thanks to the Java community. The j2se 5.0 Expert group includes the following companies in the Java field: 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 are made up of eminent Java domain experts. They have organized 160 of experts around the world to work together, eventually forming the J2se 5.0 java specification. The specification overrides the update from the language to the Concurrent class library to the class compressed fileApi. Please refer to J2se 5.0 in a nutshell for more technical details. Reference books on the sidebar of this page are also available, and such reference books are increasing. 1.5.1.     Books about j2se 5.0 L         java  5.0 tiger: a developer ' s notebook. david flanagan, brett  Mclaughlin. 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          Core Java 2, Volume I, II  (7th  ed.).  Cay Horstmann, Gary Cornell. Pearson Prentice Hall, 2005.l          just&nBsp 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 2005l         The Java Class  libraries poster : java 2 platform standard edition 5.0  (8th  ed.).  Patrick Chan, Rosanna Lee. Addison-Wesley Professional, 2005.l          Objects, Abstraction, Data Structures and  design using java version 5.0. elliot koffman, paul wolfgang.  wiley, 2004. 1.6.         conclusion This article lists my use of JAVA&Nbsp;2 platform, standard edition  (J2se platform)  5.0 's 5 important reasons. (This article does not cover all functions on the client or server side). All information about the platform, from specification to source code, can be obtained 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 leverage the j2se 5.0  enhancements to improve developer productivity. l         new j2se 5.0 enhanced tools  And applicationsl         java system application  Server 9l         NetBeans 4.0l          Eclipse 3.xl          Borland jbuilder 2005 - wily introscope

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.