What is the difference between a vector and an Array? (Java)
Answer Posted / shiv
Array is not synchronized
Vector is synchronized class
By default array are type safe
To make a vector class type safe we need to implement
generics
Once Array size defined it will be fixed for the rest of
its life
Vector can grow dynamically
Array pass no instance of test with Collection interface
Vector pass as it extends List which is a sub class of
Collection.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is sharded cluster?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
How to create a new table by selecting rows from another table?
What is set verify off in oracle?
How to invoke the original export import utilities?
What is the difference between postgresql and oracle?
How to use "in out" parameter properly?
What is oracle thin client?
What is a private synonym?
Explain what are the characteristics of data files?
What is oracle used for?
What are the various oracle database objects?
Does oracle database need java?
How to create a new table in oracle?
What is open database communication (odbc) in oracle?