ANSWERS: 1
  • I suppose that the question refers to ArrayList and Vector classes of Java collections. The main difference is that Vector is synchronized and ArrayList is not. Apart from that - both grow and shrink as needed and allow amortized O(n) time for n insert/retrieve operations. If you are planning only single-thread access, you definitely should use ArrayList which is faster (because it is not synchronized)

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy