• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to know some things on generics

 
Dinesh Tahiliani
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Diffrence between
1. List<?>
2. List<?super Number>
3. List<? extends Number>
4. List<Number>

Please explain with example Please....
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Sun's Java tutorial on generics, especially the section about wildcards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic