permaculture playing cards
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Need to know some things on generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Need to know some things on generics" Watch "Need to know some things on generics" New topic
Author

Need to know some things on generics

Dinesh Tahiliani
Ranch Hand

Joined: Aug 06, 2007
Posts: 486
Diffrence between
1. List<?>
2. List<?super Number>
3. List<? extends Number>
4. List<Number>

Please explain with example Please....


Thanks<br />Dinesh
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14958
    
  26

See Sun's Java tutorial on generics, especially the section about wildcards.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Need to know some things on generics
 
It's not a secret anymore!