File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes About generic Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "About generic Question" Watch "About generic Question" New topic

About generic Question

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147

Does anybody tell me why the first is better than the second?
Thanks a lot!!!
[ December 29, 2007: Message edited by: qingwu wang ]

Thanks...qingwu<br />When I open my eyes,I see your pretty face.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Well, it isn't. Using generics in this case is absolutely superfluous.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: About generic Question
jQuery in Action, 3rd edition