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

What is return keyword in java?

798


What is class and object in java?

750


What is module in project?

721


What does || mean in code?

781


What is comparable and comparator interface? List their differences

813


Why does java have two ways to create child threads?

665


what is thread? : Java thread

753


Can a class extend more than one class?

836


Does java have a compiler?

776


What is the difference between yielding and sleeping in java programming?

792


Why volatile is used in java?

736


What are assembly attributes?

757


what is deadlock? : Java thread

728


What is the size of an array?

759


Is 0 a prime number?

734