ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Generic Types, Part 1
Subject:   Regarding wild card characters in Generics in Java
Date:   2008-03-26 23:01:19
From:   Prashant Bendale
I have a class B which inherits from class A. I have a collection Vector<? extends A>. why cant I cast it to Vector since B inherits from A?

1 to 1 of 1
  1. Regarding wild card characters in Generics in Java
    2008-03-26 23:03:41  Prashant Bendale [View]

1 to 1 of 1