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


Please Help Members By Posting Answers For Below Questions

What should I import for arraylist in java?

740


Explain the features of java?

789


What is the difference between the font and fontmetrics classes in java programming?

706


What is string syntax?

809


For class CFoo { }; what default methods will the compiler generate for you>?

833


How can we create objects if we make the constructor private ?

740


What is the length of a string?

738


What is a dynamic array in java?

790


How to optimize the javac output?

800


What is the collections api in java programming?

769


What is default locale java?

791


Why should we use singleton pattern instead of static class?

710


How to access arraylist elements in java?

703


Explain what do you mean by functional overloading in java?

787


What are the types of web technologies?

775