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 diff b/w arraylist and vector?

Answer Posted / srikanth reddy

Vector and ArrayList are very similar. Both of them
represent a 'growable array'

arraylist class is added in java/j2ee where has vector class
is before to jdk1.4 they just taken as it as in jdk1.4

the main difference is that Vector it's a synchronized
object, while ArrayList it's not.

for accesing elements of arraylist we can use iterator

for accesing elements of vectorlist we can use both iterator
and enumeraation

arraylist is faster in acessing of elements compared to
vector class

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is passing by reference faster?

996


Does java list allow null?

988


What is Enum in Java?

1311


What does it mean to be immutable?

968


What does three dots mean in java?

1126


Which is the best approach for creating thread ?

1216


What is a java lambda expression?

1045


What are the types of inner classes (non-static nested class) used in java?

1064


What is pojo class in java?

1102


Which method returns the length of a string?

1038


What is the structure of java?

1031


Can we override private constructor in java?

977


What does += mean in java?

1084


What is singleton class example?

1026


What is jdbc api?

1009