欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的?( )
A、ArrayListmyList=newObject();;
B、ListmyList=newArrayList();;
C、ArrayListmyList=newList();;
D、ListmyList=newList();
发布时间:2024-07-03 14:09:49
A、ArrayListmyList=newObject();;
B、ListmyList=newArrayList();;
C、ArrayListmyList=newList();;
D、ListmyList=newList();