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 |
Find all employees in Dept “Marketing”.
how to retrieve daily sal from emp table in oracle 10g
What is rich query?
what is query and types of query
Can a Tablespace hold objects from different Schemes ?
How to connect to oracle using service name instead of sid?
How to insert a new row into a table in oracle?
What is execute immediate in oracle?
what are the diffeenes between oracle 9i,oracle 10g
Do you know about aggregate functions? What is row num function? Can it be used all databases?
1 Answers Bravura Solutions, Cap Gemini,
HOW TO CONVERT ORACLE TABLE DATA (RECORDS)INTO EXCEL SHEEET?
Can we create database in oracle using command line ?