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 a dead lock in oracle?
What is a partition in oracle?
How to enter a new row into a table interactively?
What is a lookup table in oracle?
Does oracle charge for java?
Can sub procedure/function be called recursively?
Explain oracle’s system global area (sga).
Briefly explain what is literal? Give an example where it can be used?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.
What is a cursor and what are the steps need to be taken?
What are the different oracle database objects?
How index is implemented in oracle database?
Explain the use of online redo log files in oracle.
How to drop a stored function?
How to create a temporary table in oracle?