Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between ArrayList and Vector

Answer Posted / m.sridhar

ArrayList and vector both are dynamically growing arrays.
ArrayList is not thread safe where as vector is thread safe.
vector is legacy class and ArrayList is newly added.
by default ArrayList capacity is 0 where as Vector intial
capacity is 10.
vector is growing by its size doubled.
ArrayList is increse by its size half(50%)

Is This Answer Correct ?    47 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is public static?

1037


What are the 8 primitive data types in java?

1021


How java uses the string and stringbuffer classes?

1081


What is public/private protected in java?

1043


Can a lock be acquired on a class in java programming?

991


Explain the use of shift operator in java. Can you give some examples?

978


What are the basic concepts of OOPS in java?

1036


What are the benefits of immutable objects?

1013


What do the thread?class methods run() and start() do?

1037


Can variables be used in java without initialization?

1090


What is object of class in java?

1127


why Interface used?

991


What is the final keyword?

989


What is this () in java?

1028


What is passing by reference in java?

1027