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
Difference between character constant and string constant in java ?
What does \ mean in regex?
Is math an abstract class in java?
How many bytes is a string in java?
Why doesn't the java library use a randomized version of quicksort?
What are the drawbacks of singleton class?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
what is a green thread? : Java thread
What are variable arguments or varargs?
Explain, java is compatible with all servers but not all browsers?
What is a method in programming?
How do you define a method?
What are the uses of java?
What is the size of int in 64-bit jvm?
Is namespace same as package in java?