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
When do we use synchronized methods in java?
How many types of the indexof method are there for strings?
Is treeset sorted in java?
What is are packages?
Which is faster string or stringbuilder?
What is a final class in java?
What does those terms actually mean included in the j.d.k i.6?
can used Protected Class outside Function.?
What is callablestatement? How you can call stored procedure to pass in parameter?
Why are functions called methods in java?
Is there a sort function in java?
Can we initialize the final blank variable?
What is isa relationship?
What is null in java?
Give reasons supporting that string is immutable.