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

What are the different types of classes implemented in the set interfaces? : java collections

610


please mail me the interview question based on java/j2ee

1537


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

576


How do I find jre path in windows?

531


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

617






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

1602


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.

1590


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

1833


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

571


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

579


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

552


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1582


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

591


can u draw class/object diagram for ATM

5531


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

1881