Differentiate Vector and ArrayList?

Answer Posted / anitha

a)Vector is a synchronized, where as an ArrayList is not
synchronized.

b)when size is going to exceed, the ArrayList size is
double of it's size, where as Vector size is increase half
of its size.

except these two both r roughlt equal.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the generic function?

735


What is stack class in java?

774


Why do I need to declare the type of a variable in java?

778


What is object cloning in Java?

850


What is scope of a variable?

832


Can we pass a primitive type by reference in java? How

713


What is the difference between C++ and Java and your preferences?

852


What is a method signature java?

813


What is an empty string in css?

770


Explain how to convert any java object into byte array.

752


What is listnode in java?

748


How does predicate work in java?

768


What is the purpose of sizeof operator?

755


Why is logger singleton?

739


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

1715