Archive
/
RSS
T < x < B
Too long to tweet, too short to blog.
Mar 24
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:
—
Covariance and contravariance (computer science) - Wikipedia, the free encyclopedia