This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Generics" Watch "Generics" New topic


Chandraprabha Rajput
Ranch Hand

Joined: Apr 01, 2003
Posts: 37
Can anyone explain me the diffrence between
List<String> l = new ArrayList();

List<String> l = new ArrayList<String>();
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45335
Hardly an advanced question.

Go through the Java Tutorial about generics, especially the bit about raw types.
Don't get me started about those stupid light bulbs.
subject: Generics
It's not a secret anymore!