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 Postdon'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 Postmay be it is a legacy class. but I was asked both the questions in Interview.
That is why I need to know the answers.If you were asked that in a job interview and didn't know the answer they're right to fail you.
If you applied for a job …
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.