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...


Difference between Array and vector?

Answers were Sorted based on User's Feedback



Difference between Array and vector?..

Answer / janet

Array is a set of related data type and static where as
vector is a growable array of objects and dynamic.

Is This Answer Correct ?    70 Yes 14 No

Difference between Array and vector?..

Answer / nikhil shah

Ans 1: Vector and ArrayList are growable or shrinkable
where as Array is not.

Ans 2: Array is not a primitive data type in java but it is
referenced data type.

Ans 3:Vector is implemented from list Interface

Is This Answer Correct ?    52 Yes 11 No

Difference between Array and vector?..

Answer / ravikiran(aptech mumbai)

Array is not growable where as vector is growable
array can hold similar type of datatype elements...where as
vector holds different datatyped objects

Is This Answer Correct ?    41 Yes 8 No

Difference between Array and vector?..

Answer / darshan

array is static
vector is dynamic

Is This Answer Correct ?    34 Yes 3 No

Difference between Array and vector?..

Answer / meghana

Array:
1)Size of array need to be declared in advance.
2)Once declared array can't grow in size.
3)Array can store primitive data types.like int,char,...
Vector:
1) No need to declare the size of vector. You may give its
size & you may not.
2) Vector can always grow in size if you start adding more
element to it than your declared size.
3) Vector can store only object references. Storing
primitive data types is not possible in case of vectors.

Is This Answer Correct ?    25 Yes 2 No

Difference between Array and vector?..

Answer / mandip

Ans 1: vector can store hetrogeneous data element,where
as array can stote homogeneous data element.

Ans 2: vector are store non-primitive type data element,
where as array can store primitive type data element.

Ans 3: wrapper classes are used in vector,where as in array
wrapper classes are not used.

Is This Answer Correct ?    17 Yes 2 No

Difference between Array and vector?..

Answer / monika

array is a collection of similar data tpyes of elements.
vector is the most widely used container.it stores elements
in contiguous memory locations.

Is This Answer Correct ?    11 Yes 2 No

Difference between Array and vector?..

Answer / aqueenni(xie)

vector is syncronised.... whereas array is not
vector grows double in size.... an arraylist grows 50% ....

Is This Answer Correct ?    12 Yes 5 No

Difference between Array and vector?..

Answer / aishwarya

Array is static memory allocation.
& vector is dynamic memory allocation

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the lifetime and scope of a variable?

0 Answers  


Objects or references which of them gets garbage collected?

0 Answers  


Which class is used by server applications to obtain a port and listen for client requests?

0 Answers  


What is the use of collections in java? How it is implemented in real time applications?

2 Answers  


enlist some features of jdk.

0 Answers  


How does marker interface provides functionality to the implemented class ? or How dose maker interface gets the functionalities as serialization or cloning.

4 Answers   Cap Gemini,


how your day start in your company

1 Answers  


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

0 Answers  


Does string isempty check for null?

0 Answers  


strings in java are objects.why?

2 Answers  


How many bits is a double?

0 Answers  


What are different types of encoding?

0 Answers  


Categories