what is the difference between ArrayList and Vector
Answer Posted / m.sridhar
ArrayList and vector both are dynamically growing arrays.
ArrayList is not thread safe where as vector is thread safe.
vector is legacy class and ArrayList is newly added.
by default ArrayList capacity is 0 where as Vector intial
capacity is 10.
vector is growing by its size doubled.
ArrayList is increse by its size half(50%)
| Is This Answer Correct ? | 47 Yes | 6 No |
Post New Answer View All Answers
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
Describe different states of a thread.
How arrays are stored in memory in java?
What does += mean coding?
What is string builder in java?
What is the difference between access specifiers and access modifiers in java? 16
How do you sort in ascending order in java?
Is a boolean 1 bit?
Is java an open source?
What is the difference between I ++ and ++ I in java?
What is the purpose of sizeof operator?
What are different types of states exist for a thread?
How do I compare two strings in word in java?
What is the unit of plancks constant?
Explain the hierarchy of java exception classes?