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)