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 is the use of hashcode in java ?

775


can u draw class/object diagram for ATM

5745


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

1786


How do I find jre path in windows?

710


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

803






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.

1780


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

728


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

786


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

2727


What do you understand by synchronization? Why is it important?

766


Which interface does java.util.hashtable implement?

895


What are the types of java collections? : java collections

721


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

2023


What are the interfaces in java collections? : java collections

825


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

718