aspose file tools*
The moose likes Beginning Java and the fly likes basic question about ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "basic question about ArrayList" Watch "basic question about ArrayList" New topic
Author

basic question about ArrayList

naweed kth
Greenhorn

Joined: Dec 29, 2010
Posts: 1
why we instantiate ArrayList polymorphically.
List list = new ArrayList();
what is the disadvantage of
Arraylist list = new ArrayList();

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

to avoid to tieup with a specific implementation of List.

by the way, this discussion happened in javaranch many time. search here...
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic question about ArrayList