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 are predicates in java 8?

814


Give few examples of final classes defined in Java API?

927


What is a file pointer?

734


What is an immutable class? How to create an immutable class?

812


What is string args [] in java?

794


What is the difference between comparison done by equals method and == operator?

811


What is parsing and its types?

806


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1393


How can constructor chaining be done by using the super keyword?

882


What is maximum size of arraylist in java?

730


What are the advantages of user defined functions?

771


Explain the importance of import keyword in java?

789


Does string is thread-safe in java?

819


What happens when you add a double value to a string?

783


What are conditionals and its types?

856