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 a memory leak in java?
What are the types of casting?
How will you initialize an Applet?
Is it possible to override the main method?
What is Applet Stub Interface ?
What is meant by binding in rmi?
what do you mean by marker interface in java?
What is method reference in java?
How many threads can I run java?
Can we serialize arraylist in java?
What is the maximum size of byte array in java?
What is consumer in java?
Why do we need autoboxing in java?
What is jagged array in java?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx