what is difference between vector and arraylist?.

Answer Posted / srinivas

Vector is synchronized and compare to array list this slow
access, by defaulst the vector is 10,this is legacy class
Where as arraylist is unsynchronized and fast random
access,in arraylist there is no default size automatically
it is growable once the object is created it will be
allocated,this is advanced class.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is hashset maintained in memory by java ?

588


Which interface does java.util.hashtable implement?

665


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

611


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

584


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

1929






Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2531


What are the considerations to be made in case of loops in java ?

564


What is the use of hashcode in java ?

573


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1579


please mail me the interview question based on java/j2ee

1530


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

573


What are the different types of features of the java collections framework? : java collections

566


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

2561


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 ?

1675


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

533