File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Generics" Watch "Generics" New topic
Author

Generics

Chandraprabha Rajput
Ranch Hand

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

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

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

Go through the Java Tutorial about generics, especially the bit about raw types.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generics
 
Similar Threads
Generics
Generics - nested type parameters
Generics question
why l.add() method is not working in this context?
Generics