answersLogoWhite

0


Best Answer

The abstraction are the same. However, the array may be of any objects, while a vector, in narrowed definition, each element is a scalar value (e.g, int, float, double, etc), to fulfill the abs(vector) = aScalarValue property of a vector. An array with the same data type would look exactly the same. But an array of Persons will be difficult to be a vector!

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Vectors & ArrayLists are similar in terms of their usage and features.

There is only one difference. Vectors are thread safe while ArrayLists are not. Hence ArrayLists are faster to execute than Vectors.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between vectors and arrays?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


What is difference between vector and tensor?

Tensors are simply arrays of numbers, or functions, that transform according to certain rules under a change of coordinates. Scalars and vectors are tensors of order 0 and 1 respectively. So a vector is a type of tensor. An example of a tensor of order 2 is an inertia matrix. And just for fun, the Riemann curvature tensor is a tensor of order 4.


Why c and java arrays are start with zero and pascal arrays are start with one?

It's a difference in mentality; some believe 0 is the begin, and is thus the only logical choice, and some think the opposite.


Write a program to find intersection between two arrays?

#include<stdio.h>


The most common function of an array is to store variables however there will be times when an array is used to store objects. briefly describe four such objects?

Any name can be placed in an array, be it a primitive name or an object name, even a function pointer. Four examples of common objects that may be placed in an array include any object defined in the STL (standard template library), which includes vectors, lists, iterators and maps. All are self-explanatory, although a vector is simply an array implemented as an object. Therefore an array of vectors is nothing more than an array of arrays (effectively a multi-dimensional array). However, vectors are the "correct" way of implementing arrays in C++ (unless you specifically wish to use C-style code in your C++ projects), thus a multi-dimensional array is best implemented as a vector of vectors.

Related questions

What are difference between scalars and vectors?

What are difference between scalars and vectors


Why is the difference between scalars and vectors important?

Without the difference between scalars and vectors the Universe doesn't work !


How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


What is the difference between vectors and non-vectors?

Coplanar :The vectors are in the same plane.Non coplanar :The vectors are not in the same plane.


One difference between vectors and scalars?

Vectors have a direction associated with them, scalars do not.


What is the difference between coplanar and non-coplanar vectors?

Coplanar :The vectors are in the same plane.Non coplanar :The vectors are not in the same plane.


What is the difference between coplanar and non-coplanar?

Coplanar :The vectors are in the same plane.Non coplanar :The vectors are not in the same plane.


What is the difference between orthogonal and orthonormal vectors?

All vectors that are perpendicular (their dot product is zero) are orthogonal vectors.Orthonormal vectors are orthogonal unit vectors. Vectors are only orthonormal if they are both perpendicular have have a length of 1.


What is the linear data structures?

Linear data structures are 1-dimensional arrays, as in: vectors.


The sum of two vectors is a minimum when the angle between them is what?

180 degrees. Then the sum of the two vectors has a magnitude equal to the difference of their individual magnitudes.


Difference between vector and array list?

Vectors are thread safe but array lists are not. Hence array lists are faster than Vectors.


What is the Difference between arrays in c and c plus plus?

Nothing whatsoever. They are exactly the same.