New Features of jdk5.0

Source: Internet
Author: User

Although jdk7.0 is coming soon. However, jdk5.0 is undoubtedly a classic version.
Compared with the previous version, jdk5.0 has added many superior features (Of course, not all of them are superior, benevolent ).
For example, annotation is used in junit4.x, EJB, and hibernate3.x. You do not need to customize annotation, but you can use and understand it.ProgramIs the most basic requirement.
Adding generics to a program makes the program safer and exposes errors during compilation.

After one afternoon of study, I personally think that the new features of jdk5.0 must be understood and mastered as follows:
1. annotation: annotation (easy to use)
2. Generics: Generic (used)
3. auoboxing/unboxing: automatic placement/Automatic Retrieval (used)
4. Static
Import: static import (will be used)
5. Enum: enumeration (used)
6. var
ARGs: Variable Parameter (used)
7. Enhanced for loop: enhanced for loop (will be used)

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.