jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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

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

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
Why is List<? super Number> a subtype of List<? super Integer> ?