Doubts about the ArrayList class!

JAVA in the original code will be seen that the ArrayList class which is defined ArrayList class, as follows

        public class ArrayList <E> the extends AbstractList <E>
            the implements List <E>, the RandomAccess, the Cloneable, the java.io.Serializable
        
        here I there is doubt, ArrayList inherited AbstractList, and AbstractList implements List interface Why not just write it as follows:.

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

        that can explain ! Thank you first!

Reproduced in: https: //www.cnblogs.com/boiledwater4tom/archive/2009/10/27/1590373.html

Guess you like

Origin blog.csdn.net/weixin_33816300/article/details/93742925