| 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
|
 |
 |
|
|
subject: basic question about ArrayList
|
|
|