Re: Which is best Vector or ArrayList? The difference between the two is that a Vector is synchronized and an ArrayList is not. Since the Vector is synchronized it has overhead for each call to the Vector.
The Vector may appear to be eaqually as fast in a simple test, but it is in fact slower.
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |