wood burning stoves 2.0*
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
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: 9318
    
109

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using generics while creating objects
 
Similar Threads
Generics
Generics
Generics
Generics
Generics