ArrayList(主要实现类)效率高、线程不安全:底层使用Object[] 对象类型大的数组
添加数据、查找数据效率比较高;插入、删除数据时效率比较低。
LinkedList:底层使用双向链表存储,
插入、删除数据时效率比较高;在添加、查找数据时效率比较低。
Vector:(List古老的实现类)线程安全、效率低:底层使用Object[] 对象类型大的数组
从底层结构上看 ArrayList和Vector都是数组存储,Vector现在没人用了也不用记了LinkedList底层是双向链表。
记得他们的底层结构就可以推断出他们性能上的差异了。
推荐阅读:
vue.js:634 [Vue warn]: Property or method "userName" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See:
SpringBoot 整合 webapp时 访问404的解决办法
状态码:415,发送HTTP请求返回415状态码的解决办法
SpringCloud怎么调用多个服务的信息
Vue 打开页面时就加载方法,例如查询
Spring整合Mybatis
SpringCloud 加入 thymleaf前端页面的方法
Controller之间的跳转
Spring AOP的实现原理
This may be the result of an unspecified view, due to default view name generation
行动消除疑虑