Alex Rivera | Logout

Why does ArrayList have "implements List"?

Asked 2010-12-08T12:29:56.903
42

In the Collection Framework we have the interface List and the class AbstractList:

AbstractList implements List

And ArrayList extends AbstractList and

implements List

My question: why does ArrayList have the implements List clause?

If ArrayList extends AbstractList and AbstractList implements List, can't we say, that ArrayList implement List?

Edit
Report

1 Answer

9

My 2 cents is to keep to the fact that ArrayList is a List. AbstractList just completes certain implementations that the List requires.

answered 2010-12-08T12:45:00.507

Your Answer