What is the difference between a vector and an Array? (Java)
Answers were Sorted based on User's Feedback
Answer / guneetinder singh
A vector is a template class but not the array is.
A grow able array is called vector while array is of fixed size.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
Answer / ashu_deepu
u have asked the question in wrong segment.
vector has variable length and can store data of different type.
but array do not have these properties.
| Is This Answer Correct ? | 2 Yes | 1 No |
what is host string in sql plus? how does it related to database?
How to define an explicit cursor in oracle?
What is clusters ?
How to find no of saturdays in a month using single sql ?
How many types of cluster table in Oracle?
What is SYSTEM tablespace and When is it Created?
What are the built-in functions used for sending Parameters to forms ?
How can Oracle users be audited?
What are the four Oracle system processes that must always be up and running for the database to be useable?
pls explain connect by prior with example and its real time use
what is the difference between dbms and rdbms?
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).