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 is hash table in java?
What is :: operator in java?
What do you understand by a Static Variable?
Is int primitive data type?
What are implicit objects in java?
What is casting in java programming?
What is collection api?
How do you ensure that n threads can access n resources without deadlock?
What is string value?
Write a program to print 15 random numbers using foreach of java 8?
Explain the difference between intermediate and terminal operations in java8?
what is meant by HQL?
What are anonymous inner classes?
What is an infinite loop in java? Explain with an example.
What are autoboxing and unboxing? When does it occur?