what is the difference between ArrayList and Vector

Answer Posted / dara

ArrayList is non synchronized.Vector is
synchronized.ArrayList is very fast because non
synchronized.we can specify the increment size with the
vector and with arrayList we cannot

Is This Answer Correct ?    29 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

741


Which number is denoted by leading 0x or 0x in java?

822


What is the difference between variable & constant?

750


What is a numeric digit?

772


What is an object class?

767


What is the purpose of tostring() method in java?

786


Which is the best approach for creating thread ?

941


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

721


when you will synchronize a piece of your code? : Java thread

751


what are three ways in which a thread can enter the waiting state? : Java thread

773


What is the difference between hashset and treeset in java?

754


What is flag in python?

796


How do you generate random numbers in java?

736


What is regex in java?

696


Can a hashset contain duplicates java?

701