Java复习难点

1.ArrayList 与vector 初始化为10,ArrayList大小由属性DEFAULT_CAPACITY常量指定,vector底层用空参构造this(10)指定大小,vector线程安全 2.ArrayList底层用索引(index)查找,LinkedList要for循环遍历 3.Collections.synchronizedList(Collection c) 包装使同步(线程安全)
相关文章
相关标签/搜索