What is the difference between a vector and an Array? (Java)

Answers were Sorted based on User's Feedback



What is the difference between a vector and an Array? (Java)..

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

What is the difference between a vector and an Array? (Java)..

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

What is the difference between a vector and an Array? (Java)..

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

Post New Answer

More Oracle General Interview Questions

can any one help me with import/export options in oracle............

1 Answers  


what is the difference between oracle enterprise edition and oracle express edition?

2 Answers  


What is oracle latest version?

0 Answers  


How to delete a user account in oracle?

0 Answers  


What is an oracle cursor variable?

0 Answers  


What is integrity and what is constraint??Explain with example

0 Answers   Google,


What is Segment Advisor in Oracle?

0 Answers   MCN Solutions,


What privilege is needed for a user to create indexes in oracle?

0 Answers  


what is the difference between data migration and production migration.

0 Answers  


How to empty your oracle recycle bin?

0 Answers  


What is a subquery in oracle?

0 Answers  


What is an Index Segment ?

2 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)