First of all, the basic movements are both similar. The difference between the two is that Vector is a class that was created at 1.0 and has been maintained until now, and then List appears.
The difference between List objects that appear after Vector is in the "synchronize" processing. Because Vector is "unconditional synchronization", single thread processing is inferior to ArrayList. The main purpose of using Vector from Java 1.2 is compatibility with 1.0. I'm almost out of use. The reason is that collection, synchronized collection, synchronized list, and map are better performance-wise than Vector when synchronized processing is required.
ArrayList is an implementation object of Collection that appeared in 1.2. Additional deletion of data is the same as Vector The internal automatic synchronization feature has been deleted.
Therefore, if you want to use either of the two, use ArrayList, and if you need to synchronize with multiple threads, We recommend that you use the other data structure described above rather than Vector.
610 Uncaught (inpromise) Error on Electron: An object could not be cloned
887 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
600 GDB gets version error when attempting to debug with the Presense SDK (IDE)
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.