Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generics

 
sumi selva
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm currently preparing for scjp1.5
I have read the Generics section from K&B book and from few other sites.
But still i'm not very clear about the concepts in generics.I'm plannin to take the exam by july last week.so it would be great if i get the notes highlighting the important concepts like usage of
1. < ? extends String>
2. < ? super String>
3. <?>
4. <String>
5. <T>
6. <T extends String> likewise
I have mentioned String class just for example. I just want to know the exact usages of these and how to use them and when to use them.

Thanks in advance,
Sumi
 
Manfred Klug
Ranch Hand
Posts: 377
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sumi,

the Java Generics FAQ may be helpful.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic