View Single Post
  #5 (permalink)  
Old 09-24-2007, 11:53 PM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Default 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
Reply With Quote