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
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is user defined exception in Java?
Why parsing is done?
What are the methods of object class ?
What is static keyword?
Why main() method is public, static and void in java ?
describe method overloading
Why main method is called first in java?
Can we use static class instead of singleton?
What happens if main method is not static?
What is the purpose of void?
What is variable explain?
Difference between method overloading and method overriding in java ?
What is the Scope of Static Variable?
what is the difference between the methods sleep() and wait()? : Java thread