Why did java.util.ArrayList repeat implements java.util.List?

< hr >

look at the ArrayList parent structure first

clipboard.png

look at ArrayList signature

public class ArrayList<E> extends AbstractList<E>
        implements List<E>, RandomAccess, Cloneable, java.io.Serializable
    

question: now that AbstractList, is inherited and AbstractList implements List, why does ArrayList bother to restate the implementation of List?
may be a thorn in the corner of the problem, but I am afraid that it is a blind spot of knowledge, you can explore!


it was actually an accident.

https://stackoverflow.com/que.

Josh Bloch said that. Ha
I think we may need this someday in the future

Menu