1

Why does LinkedList implement the List interface in java even though it extends AbstractList which implements List interface already?

nhouser9
  • 6,730
  • 3
  • 21
  • 42
varra
  • 164
  • 8
  • 1
    Your 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
  • 1
    Probably 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

0 Answers0