We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
集合的特点
千锋教育
集合的特点主要有如下两点:
1. 集合用于存储对象的容器,对象是用来封装数据,对象多了也需要存储集中式管理。
2. 和数组对比对象的大小不确定。因为集合是可变长度的。数组需要提前定义大小