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

What is pangram in java?

1014


What is the final keyword denotes?

1112


Define immutable object?

1066


How many tetrahedral voids are there in bcc?

1099


What are the files generated after using IDL to java compiler?

1151


Explain the selection sort algorithm and state its time complexity?

1022


What is meant by final class?

1121


What is io stream in java?

1067


Why java doesn’t support multiple inheritances?

1061


What are jee technologies?

1016


What is externalizable interface?

1107


What do you mean by of string::valueof expression in java 8?

968


Which sort is best in java?

973


Why java is platform independent? Explain.

1012


Which method cannot be overridden in java?

998