I see the following class hierarch, for LinkedList
in Java.
public interface Collection<E>
extends Iterable<E>
public abstract class AbstractCollection<E>
extends Object
implements Collection<E>
public abstract class AbstractList<E>
extends AbstractCollection<E>
implements List<E>
public abstract class AbstractSequentialList<E>
extends AbstractList<E>
public class LinkedList<E>
extends AbstractSequentialList<E>
implements List<E>, Deque<E>, Cloneable, Serializable
Observing this hierarchy, why LinkedList
need to mention implements List<E>
when it is indirectly coming from AbstractList<E>
.
Is there any reason to do so?
EDIT