This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 14074
    
  16

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


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to know some things on generics
 
Similar Threads
upper bound wildcard is readonly but lower bound are not
Generics ...Please Help.......
Kb question pg 634
Generics
Why is List<? super Number> a subtype of List<? super Integer> ?