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 an array and a vector? How they different from each
other?

Answer Posted / manjusinga

Arrays group values and permit fast access by numeric
index. Vectors are a variant of arrays that also permit
fast access by numeric index.

They differ from each other in this way.
vector can grow and shrink dynamically where as array
cannot.

vectors can be synchronised where as arrays cannot be.

vecotrs are implemented from list interface where as arrays
are primitive datatypes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort arraylist in descending order?

1011


Which collection allows duplicate values in java?

964


How many bytes is a string java?

1011


How does hashset work in java?

1107


What is the difference between compare and compareto in java?

1018


How does varargs work in java?

1081


Which class is the superclass for all the classes?

1017


What is the meaning of flag day?

1019


Can I learn java in 3 months?

1016


Which programming language is most secure?

982


How do you input a string in java?

1055


What is arraylist class in java?

1050


What is field name?

1010


What is the difference between assignment and initialization?

1041


What is boolean example?

960