This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes newbie question - generics Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "newbie question - generics" Watch "newbie question - generics" New topic
Author

newbie question - generics

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hi all
Can someone please refresh my memory, what is the difference between writing:
List<Class> classes = new ArrayList<Class>();

Or:
List<Class<?>> classes = new ArrayList<Class<?>>();

Thank you
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Should be the same . Class<?> is parameterless just as Class.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie question - generics
 
Similar Threads
Need Help Sorting ArrayList of Generic Objects
Regarding Generics
Generics Question:
How to get byte of arralylist
GENERICS