A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
dif between vector() and ArrayList()
Joined: May 20, 2006
May 20, 2006 14:01:00
is there any difference between vector and arraylist other than synchronization
Joined: Mar 14, 2006
May 20, 2006 14:13:00
when you use vector its soooo slowly...but its because of the synchronized method, that 's why vector is deprecated...and you beter use arraylist who has the same possiblities
The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Joined: Apr 25, 2005
May 20, 2006 16:35:00
One more difference is in terms of growth of the collection
increases its size by 50%.
Whereas, Vector increases its size by 200%.
[ May 20, 2006: Message edited by: Naseem Khan ]
Asking Smart Questions FAQ
How To Put Your Code In Code Tags
Joined: Feb 02, 2006
May 23, 2006 09:55:00
-- which is better
I agree. Here's the link:
subject: dif between vector() and ArrayList()
What is difference between ArrayList and vector?
What is the difference between Vector and ArrayList
Vector deprecated in 1.3?
Question in Collection?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014