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 exactly do quotation marks around the table name do?
I have query like this. select dept_id, max_mark from stude_dept where min_mark= (select min(mini_mark) from stud_dept); How can i optimize this query. Can anyone help me with it
What are the different approaches used by Optimizer in choosing an execution plan ?
How to write numeric literals in oracle?
i want department wise maxmum salary and empolyee name
What are the various types of snapshots ?
What is Parallel Server ?
How to find out what oracle odbc drivers are installed?
How to best split csv strings in oracle 9i?
what is unique key?
14 Answers Amazon, Cap Gemini, Infosys, Wipro,
What is Oracle table?
What is oracle analytical function?