Java theory and practice, Using Java 5 language features in earlier JDKs
Even if you're stuck on JDK 1.4, you can still use generics
From the developerWorks archives
Date archived: February 27, 2017 | First published: February 27, 2007
Java™ 5 added a number of powerful language features: generics, enumerations, annotations, autoboxing, and the enhanced
for loop. However, many shops are still tied to JDK 1.4 or earlier and may be for some time to come. But it's still be possible for those developers to take advantage of these powerful language features while continuing to deploy on earlier JVMs. Brian Goetz returns from his hiatus in this installment of Java theory and practice to demonstrate how.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.