File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Java in General
EXCEPT SYNCHRONIZATION what are the main diff between ArrayList and Vector
Joined: Nov 15, 2007
Dec 04, 2007 12:10:00
EXCEPT SYNCHRONIZATION what are the main diff between
and HashTable and
author and iconoclast
Joined: Jul 08, 2003
Dec 04, 2007 12:32:00
You tell us what the differences are, and we'll tell you which ones are the main ones (start by reading the Javadocs for each class.)
[Jess in Action]
Joined: Nov 20, 2007
Dec 04, 2007 22:20:00
I think Synchronization (i.e. Thread safety) is the main difference. Because of which one more thing comes into picture that is "speed(or performance)" of the operations on these collection objects.
When you know that there will not be multiple threads accesing the collection object you should use the
instead of vector.
Joined: Oct 27, 2005
Dec 05, 2007 03:51:00
Hashtable does not allow null as key or value,
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: EXCEPT SYNCHRONIZATION what are the main diff between ArrayList and Vector
Vector deprecated in 1.3?
What is the difference between ArrayList and Vector?
Diff between Vector and ArrayList(implementation Diff)
vector and arraylist
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014