This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
Have you checked out Aspose?
 
subject: basic question about ArrayList
 
It's not a secret anymore!