J2SE 1.5 in a Nutshell Chinese version

Source: Internet
Author: User
Java 2 Platform Standard Edition (J2SE) 1.5 (codenamed "Tiger") is an important change to the Java platform and language. Currently, J2SE 1.5 contains 15 JSR requests, the corresponding JCP results in nearly 100 significant changes.
Seeing that this version has brought so many exciting changes, you may want to know where you should start. as with previous releases, all changes will have a clear list stored in "Release notes guide ". this article from The J2SE development team will guide you through major changes, so that you can quickly grasp what J2SE 1.5 can provide before going into the API documentation.
J2SE 1.5 focuses on the following key topics:
Simple Development of Development
Scalability and Performance
Monitoring and management capabilities Monitoring and Manageability
Desktop Client
Some features are also very important, but they are irrelevant to these topics, so they are listed at the end of the article:
Other Features: Miscellaneous Features
Simplified Development of Development
You may have seen some reports on new features in Java that make development easier. these features include generic categories, metadata, automatic packing, an enhanced for loop, enumeration type, static introduction, C language input and output, variable parameters, parallel Tools and a simplified RMI interface generation.
JSR 201 includes four of the above language features: enhanced for loop, enumeration type, static import and automatic packing; JSR 175 describes the metadata function; JSR 14 details generic categories.
The default language used in the javac compiler is J2SE1.4. this means that if you want to use any of these new language features, you must add a parameter-source 1.5 on the javac command line during compilation. (Translator's note: This is why many developers cannot use these new features after downloading this version .)
Metadata
The metadata feature in J2SE 1.5 provides the ability to connect and attach data to Java Class, Interface, Method, and Field. these additional data or annotations can be recognized by the javac compiler or other tools, stored in the class file according to the configuration, and can be found through the Java reflection API at runtime.
One of the main reasons for adding metadata to the Java platform is that similar development and running tools can get a basic framework, which can reduce the extra effort required during coding and publishing. A tool can use this metadata to generate additional code or provide additional information during debugging.
Instead of the metadata tool, the following sample code creates a metadata annotation for intelligent debugging. this annotation will be displayed in subsequent debugging. we can see that most of the metadata tags constitute a standard, fixed set.
Import java. lang. annotation .*;

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.