what is difference between vector and arraylist?.

Answer Posted / arjun kumar

If we want to arrange a collection of objects into an other object then we will use either ArrayList or Vector. When we use these classes all the objects that are placed in it will be stored sequentially one after the other.

ArrayList : If we want to store same type of objects then we will use ArrayList class.

Vector : If we want to store different type of objects then we will use Vector class.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can u draw class/object diagram for ATM

5772


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

804


What are the interfaces in java collections? : java collections

858


Which sorting algorithm is used by collections.sort() in java ?

747


What is the enumerator of the java collection framework? : java collections

785


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

1823


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

760


What are the types of the main implementing classes in the map interfaces? : java collections

862


What are the types of java collections? : java collections

750


What are the classes in the java collection framework? : java collections

822


What are the main classes of the list interfaces? : java collections

793


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 ?

1895


What is java collection? : java collections

828


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

778


What is the Spring2.5 MVC Navigation flow?

5776