what is the difference between ArrayList and Vector
Answer Posted / kishore kumar naidu n
ArrayList Vector
1>. NOT synchronized 1>.Synchronized by Default
2>. Use only Iterator to 2>.Can use Iterator and Enumerator
access elements interface to access elements
3>. It increase it's size 3>.Default it double it's size
by 50% if it run out
off room
4>. No default size 4>.Default size is 10.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What type of value does sizeof return?
What is nested top-level class?
How do you sort in java?
What's the difference between int and integer in java?
What are class members by default?
What is a predicate method?
What is the purpose of the return statement?
How does predicate work in java?
Explain the concept of proper inheritance?
What is collection class in java?
What ide should I use for java?
If an object is garbage collected, can it become reachable again?
Is 64bit faster than 32 bit?
What is the difference between JDBC 1.0 and JDBC 2.0?
What are the differences between abstract class and interface?