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 happens if recursive calls get out of control?
what is the use of ondelete cascade?
SELECT THE RECORDS FROM 3 TABLES LIKE(T1,T2,T3) AND HOW CAN WE INSERT THAT RECORD IN ANOTHER TABLE LIKE(T4)?
How to use "while" statements in oracle?
Can cursor variables be stored in PL/SQL tables.If yes how. If not why?
How to create a table in a specific tablespace?
i can't insert column value greater than 4000 characters at one instance even i am using CLOB datatype . how to insert efficiently more than 4000 characters ? And please let me know how to impose inline and out-of line constraints on oracle column??? Thanks in Advance... Prakash
What is oracle database client?
How to drop a stored procedure in oracle?
who is the father of oracle and send chodd rules
13. Display the second to fifth characters in each client name.
Why does oracle 9i treat an empty string as null?