java vector 3 code example
Example 1: what is vector in java
Array based data structure/Internally uses
dynamic array.
-It is synchronized - thread safe.
-It is mostly used in multi-threaded environment.
-It is much slower than ArrayList because it is
thread-safe
Example 2: vector in java
Array based data structure
-It is synchronized - thread safe.
-It is mostly used in multi-threaded environment.
-It is much slower than ArrayList because it is
thread-safe