T < x < B

Too long to tweet, too short to blog.
Mar 24
Permalink
Generics were introduced in Java in Java 5.0 to allow type-safe generic programming. Unlike arrays, generic classes are neither covariant nor contravariant. For example, neither List nor List is a subtype of the other: