aspose file tools*
The moose likes Beginning Java and the fly likes Using generics while creating objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Using generics while creating objects" Watch "Using generics while creating objects" New topic
Author

Using generics while creating objects

srujana maredugu
Greenhorn

Joined: Jan 10, 2008
Posts: 8
What is the difference between creating object using Generics in java 1.5.

List<String> l=new ArrayList(); and
List l=new ArrayList<String>();
[ February 06, 2008: Message edited by: Jaikiran Pai ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10207
    
166

Srujana,

Welcome to JavaRanch

While posting a question please use a meaningful subject line. Doing so, you are more likely to get answers to your questions. I modified the subject line to be meaningful. I'll move this question to our JiG(B) forum where this is more appropriate.
[ February 06, 2008: Message edited by: Jaikiran Pai ]

[My Blog] [JavaRanch Journal]
 
 
subject: Using generics while creating objects