We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Generic Types, Part 1
|
| Subject: |
|
Regarding wild card characters in Generics in Java |
| Date: |
|
2008-03-26 23:03:41 |
| From: |
|
Prashant Bendale
|
Response to: Regarding wild card characters in Generics in Java
|
|
Slight modification in the question:
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?
|