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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to insert multiple rows with one insert statement in oracle?

564


What language does oracle use?

589


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

641


How do I uninstall oracle client from windows?

532


What is a private synonym?

1076






How to define default values for formal parameters?

584


How to convert a string to a date in oracle database?

539


How to use regular expression in pattern match conditions in oracle?

566


What is a trigger and what are its types in oracle?

530


How to use "if" statements on multiple conditions?

713


List the parts of a database trigger.

563


What is the usage of merge statement?

663


State some uses of redo log files?

550


What are the varoius components of physical database structure of oracle database?

560


What is a read only transaction in oracle?

587