what is the difference between ArrayList and Vector

Answer Posted / harmeet

Arraylist is not synchronized where as Vector is
synchronized.
No default size for Arraylist where as Vector is having a
default size of 10.

Is This Answer Correct ?    58 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a java program to print fibonacci series?

542


How can we pass argument to a function by reference instead of pass by value?

588


What is boolean law?

520


What type of variable is error flag?

587


Is set ordered in java?

572






In the below example, how many string objects are created?

561


What do you mean by object?

552


What is the use of object and class classes?

569


What is procedure overloading?

1802


What does int argc char * argv [] mean?

518


Can we write any code after throw statement?

609


How do you use equal in java?

543


What are static methods?

576


Can we sort hashmap in java?

532


What is the difference between array and array list in java?

607