Home Answers Viewqa Java-Beginners Diff between ArrayList and Vector?

 
 


Dilvin Riyo
Diff between ArrayList and Vector?
1 Answer(s)      a year and 10 months ago
Posted in : Java Beginners

What's The Difference between ArrayList and Vector Classes and Can you give me a simple Program for set and List Interface . . .

View Answers

July 25, 2011 at 4:52 PM


Difference between ArrayList and Vector:

1)Vectors are synchronized while ArrayList are not.

2)When an element is inserted into ArrayList or Vector then vector doubles its size of array while ArrayList increases upto 50 percent.

Example of Set Interface

Example of List Interface









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.