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
How to sort numbers in java without array?
Why collection doesn’t extend cloneable and serializable interfaces?
When is finally block not called?
can java object be locked down for exclusive use by a given thread? : Java thread
What is matcher in java?
What is sortedset in java?
Java Compiler is stored in JDK, JRE or JVM?
What is fundamental datatype?
what is the difference between future and callable interface in java?
What are the different types of java?
What is independent and dependent variables in research?
What are the advantages of inner classes?
What is ascii code?
What is the vector class in java programming?
How do you convert bytes to character in java?