• 2022-06-19
    欲构造ArrayList类的对象,此类继承List接口,下列方法哪个是正确的?
    A: ArrayList mylist=new List()
    B: ArrayList mylist=new Object ()
    C: List mylist=new List()
    D: List mylist=new ArrayList ()