Skip to Main Content

Java APIs

Covariance vs. Generics

843793Aug 28 2002 — edited Sep 20 2002
I've been seeing a lot of discussion about covariance and generics around the forums and it seems to me that generics and covariant return types totally separate concepts. It seems to me that covariance and generics can be used to achieve some of the same goals but that they are not inherently tied to each other. Is this a correct assesment? It also seems to me the covaraince would be much easier to add to Java than generics and I can't really think of a reason not to add it. Any comments?
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2002
Added on Aug 28 2002