Vector是继承了AbstractList抽象类并且实现了List接口,

其底层数据结构为Object[]数组。

Vector原理源码分析

总结一句话Vector与ArrayList类似,只是其在修改数据的方法上加了synchronized方法。所以Vector是一种线程安全的ArrayList

相关文章:

  • 2021-09-05
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-04-03
  • 2021-08-29
猜你喜欢
  • 2021-12-18
  • 2021-06-14
  • 2021-10-11
  • 2021-08-23
相关资源
相似解决方案