Java Theory and Practice: Going Wild With Generics 2

Wildcards can be very confusing when it comes to generics in the Java language, and one of the most common mistakes is to fail to use one of the two forms of bounded wildcards (“? super T” and “? extends T”) when needed. You’ve made this mistake? Don’t feel bad, even the experts have, and this month Brian Goetz shows you how to avoid it.

One Response

  1. 2008-07-10 6:14 pm