欲构造ArrayList类得一个实例,此类继承了List接口,下列哪个方法是正确的?
(A)ArrayList myList = new Object();
(B)List myList = new ArrayList();
(C)ArraylList myList = new List();
(D)List myList = new List();
参考答案
继续答题:下一题
(A)ArrayList myList = new Object();
(B)List myList = new ArrayList();
(C)ArraylList myList = new List();
(D)List myList = new List();