what is the difference between ArrayList and Vector
Answer Posted / payel
I would like to answer this question as point...which would be easier to remember
1.Vector is synchronized whereas an arraylist is not synchronized
2.Vector is an object whereas an arraylist is a part of the collection framework
3.Vector has a default size of 10 whereas an arraylist has no default size
4.Vector requires an iterator to display its contents whereas an arraylist does not require any iterator
5.Vector defines an increment size whereas an arraylist does not define any increment size
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the two environment variables that must be set in order to run any java programs?
What is java instanceof operator?
What is n in java?
When does a class need a virtual destructor?
Do you know how to reverse string in java?
What is string and its types?
What is static synchronization?
What does it mean that a class or member is final?
Which package has light weight components in java programming?
What is the difference between final, finally and finalize() in java?
What is a protected class in java?
Is singleton class thread safe?
What is the difference between notify and notifyall method?
Does string isempty check for null?
What is anti pattern in cyber security?