Quantcast
Viewing all articles
Browse latest Browse all 26

Use Array instead of Vector.elementAt() for Better Performance

Vector is a another legacy implementation of List interface provided with java bundle. It is almost similar to ArrayList expect it is synchronized also. It has its own advantages as well as disadvantages e.g. Vector doesn’t need additional synchronization while accessed from multiple threads but it degrades its performance for the same reason. Here I […]

The post Use Array instead of Vector.elementAt() for Better Performance appeared first on HowToDoInJava.


Viewing all articles
Browse latest Browse all 26

Trending Articles