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

How do I find jre path in windows?

539


What is java collection? : java collections

597


What is an algorithm in java collection framework? : java collections

592


What are the interfaces in java collections? : java collections

628


What are the types of java collections? : java collections

553






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

595


What is the Spring2.5 MVC Navigation flow?

5397


Should we create system software ( e.g operating system ) in java ?

588


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

581


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2584


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 ?

1691


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

610


my interviewer asked me what technical specification you used how to answer that question

1945


What is the use of hashcode in java ?

587


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

605