This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 381
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: 1505
    
    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?