找考题网-背景图
单项选择题

A.ArrayList myList=new Object()B.List myList=new ArrayL……

欲构造ArrayList类继承了List接口,下列哪个方法是正确的?()

A.ArrayList myList=new Object()
B.List myList=new ArrayList()
C.ArrayList myList=new List()
D.List myList=new List()