For those which have been using Java since its beginings, the jump from JDK 1.4 to JDK 5 was a big step.

One of the major changes were the introduction of Generics, a very powerful feature in my opinion.

Using them just to specify the type of the collections or list at compiling time is very simple, but when we start dealing with our own generic classes and methods, using wildcards and so on, it get’s much more complicated.

Brian Goetz from SUN microsystems, bring us a great tutorial divided in two parts, to fully understand the use of them and avoid getting stack on the road.

Going wild with generics, Part 1
Going wild with generics, Part 2

Advertisements