Two Laptop Bag*
The moose likes Beginning Java and the fly likes newbie question - generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
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
Regarding Generics
Need Help Sorting ArrayList of Generic Objects
GENERICS
How to get byte of arralylist
Generics Question: