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
Difference between error and exception
What is abstraction in java?
What is double word?
What is the final field modifier?
What is java used for?
How is java created?
What are the two types of streams offered by java 8?
Which is best ide for java?
What is the abstraction?
What is meant by nested loop?
What is the difference between equals() and?
Can we extend immutable class?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is null object in java?
What do you mean by an interface in java?