This content has been marked as final. Show 2 replies
899440 wrote:I dont think there's any specific reason for that. In my opinion its redundant. May be its added for clarity so that from the documentation its obivous that ArrayList implements List.
Why the ArrayList implements the List interface even though it extends the AbstractList class. Is it only for clarity of interface implemented?
May be there's something which I am missing regarding this?
Javadoc would show it as implementing List even if that was only inherited. Whether or not to reiterate the implemented interfaces is a never ending debate. It is redundant: it does no harm.