This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 -
Don't get me started about those stupid light bulbs.
subject: newbie question - generics
Similar Threads
Regarding Generics
Need Help Sorting ArrayList of Generic Objects
How to get byte of arralylist
Generics Question: