aspose file tools*
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: 14338
    
  22

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to know some things on generics