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 is main method?
What is data object example?
What is entry set in java?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
Explain naming conventions for packages?
What is java dot?
Explain yield() method in thread class ?
What is function and its uses?
What is __ init __ functions?
Why is singleton class used?
What is difference between equals and hashcode method?
How do you replace a string in java?
What is the covariant return type?
What do you know about the garbate collector?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread