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

About generic Question

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.
2.

Does anybody tell me why the first is better than the second?
Thanks a lot!!!
[ December 29, 2007: Message edited by: qingwu wang ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it isn't. Using generics in this case is absolutely superfluous.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic