File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "About generic Question" Watch "About generic Question" New topic
Author

About generic Question

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
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 ]

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

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: http://aspose.com/file-tools
 
subject: About generic Question
 
Similar Threads
Overriding/overloading.
Duplicate Method Compiler Error
How interfaces are used for code reusability
static overloaded methods
Generic methods and wildcards