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 / aravind

1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a
default size of 10.
3. Arraylist don't define any increment size while vector
does.
4. Arraylist can be seen directly without any iterator
while vector requires an iterator to display all it's
content. (not very sure).

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local class in java?

984


can java object be locked down for exclusive use by a given thread? : Java thread

1019


How do you access command-line arguments within the code?

1002


Is string is a data type?

903


What is diamond operator in java?

894


Can we call a non-static method from inside a static method?

956


Can we use switch statement with strings?

987


What language is an assembler written in?

939


What happens if we override only equals?

925


How do you initialize an arraylist in java?

974


What does  mean in regex?

985


What is jvm? How its run?

1018


What is use of functional interface in java 8? Explain

943


What is variable argument in java?

947


What is pre increment and post increment in java?

941