File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Generic arguments and super vs. extends? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Generic arguments and super vs. extends?" Watch "Generic arguments and super vs. extends?" New topic
Author

Generic arguments and super vs. extends?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388
When should I use super vs. extends? Both lines 11 and 14 compile. Lines 15 and 16 do not. Is this a proper use of the word super in a generic argument on line 11? When should I use super in the context of line 11? When should use extend as in line 14?
Can someone help me modify lines 14-16 so that it still uses the keyword extends on line 14 and still executes lines 15 and 16?
Thanks
Siegfried
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1512
    
    5

Hi Siegfried,

I hope this might help you.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generic arguments and super vs. extends?