jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie question - generics" Watch "newbie question - generics" New topic

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>();

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
It's not a secret anymore!