Vector vs ArrayList

When to prefer Vector vs ArrayList? By functionality, both are very similar. Both are derived from List interface. The most important difference is that Vector methods are synchronized where as ArrayList methods are not. In a multithreaded environment, when a number clients access same instance where data is very critical and important, it is advised …

Vector vs ArrayList Read More »