what is difference between vector and arraylist?.

Answer Posted / srinu

vector:-
1)Vector is a synchronized.
2)These are Thread safe.
3)performance slow
4)it implements
serializible,list,collection,iterable,Randomaccess,clonable
interfaces.
5)vector is optimum storage management.

Arraylist:-
1)ArrayList is not synchronized.
2)these are not safe.
3)performance is high.
4)it implements
serializible,list,collection,iterable,Randomaccess,clonable
interfaces.
5)ArrayList is not a optimum storage management

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of java collections? : java collections

721


What is the difference between comparable and comparator in java.util pkg?

786


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1861


What is the use of the list interface in the java collection? : java collections

773


What is deque in the java collections framework? : java collections

706






What are maps interfaces in the java collections? : java collections

754


What is the Spring2.5 MVC Navigation flow?

5710


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

2089


What are the types of interface used in the java collections? : java collections

765


What are the different types of collections views being provided by the map interface? : java collections

767


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1791


what is mean by hasing and maping in java platform and advantage?

2055


Which interface does java.util.hashtable implement?

891


What is iterator in the java collections framework? : java collections

720


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1781