Hi,
I have another question.
What is the advantage of arraylist over vector.
Why arraylist is widely used instead of vector in java programming?
Thanks in advance.....
java_programmer 0 Junior Poster
Recommended Answers
Jump to Post— jwenting 1,905don't use Vector unless you have to and remember that you don't have to unless you've no other option (like it's a required argument to some method). That's all you need to know.
Jump to Post— tommybobby 0Well in relation to threads, I major difference is that a Vector is synchronized and an ArrayList is not synchronized. What this means is, if two threads attempt to access a
Vector it will be synchronized. One thread will have to wait until the
other thread is finished accessing the …
All 6 Replies
jwenting 1,905 duckman Team Colleague
java_programmer 0 Junior Poster
tommybobby 0 Newbie Poster
jwenting 1,905 duckman Team Colleague
hottdy -2 Newbie Poster
jwenting commented: troll -2
BestJewSinceJC 700 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.