Why does LinkedList
implement the List
interface in java even though it extends AbstractList
which implements List
interface already?
Asked
Active
Viewed 80 times
1
-
1Your question should probably be generalized. Something like *"Why would you implement an interface in a class whose parent already implemented it?"*, then give the lists as an example. Because this probably happens a lot, not just regarding lists. – RaminS Oct 19 '16 at 20:43
-
1Probably very similar: [Why does arraylist class implement List as well as extend AbstractList?](http://stackoverflow.com/questions/18558536/why-does-arraylist-class-implement-list-as-well-as-extend-abstractlist) – Jorn Vernee Oct 19 '16 at 20:45
-
@Gendarme makes sense. – varra Oct 19 '16 at 20:51
-
@JornVernee Looks same, thanks for pointing. – varra Oct 19 '16 at 20:51