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 the use of ondelete cascade?
what is the difference between primary key & foreign key?
57 Answers CTS, Infosys, La Multi, Sparsh, Wipro,
How to assign a tablespace to a users in oracle?
How do we get field details of a table?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?
what are steps for interface? where is exchange rate defined in which table?
Explain the use of grant option in exp command.
What are the tools for Oracle ?
How to loop through a cursor variable?
Differentiate between post-database commit and post-form commit?
dear sir/madam, i have done my engg in 2007 after that i did oracle course (sql,plsql,forms,reports) .from 2008 to 2009 i searched job but didnt got.so i planned to move to sales field & i gone to dubai.till now i m in sales only.now i want to shift my career in to IT industry.but now people are not hiring as fresher.so i planned put fake 1 + exp. is it good or bad or any other way is there to enter in IT.please suggest me or call me 09632087338.
Is there a function to split a string in plsql?