Quite a few articles have been written introducing the new language features
in JDK 1.5. In this article, we're going to go a little deeper and provide
tips on how to effectively use those features.
Introduction
During the beta period for JDK 1.5, we worked on a 1.5 Java compiler for
BEA's Java IDE. As we implemented various new features, people would begin
exploiting them in new ways, some clever, some clearly candidates for a list
of what not to do. The compiler itself used 1.5 features, so we gained direct
experience in maintaining 1.5 code as well.
As we mentioned, this is not an introductory article. You should know roughly
what the new features are, and we'll talk about some of the interesting,
hopefully non-obvious implications and uses. These tips are a somewhat r... (more)