Difference between Array and vector?

Answer Posted / nikhil shah

Ans 1: Vector and ArrayList are growable or shrinkable
where as Array is not.

Ans 2: Array is not a primitive data type in java but it is
referenced data type.

Ans 3:Vector is implemented from list Interface

Is This Answer Correct ?    52 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this mean java?

552


What are different access specifiers in java?

557


What is the difference between instanceof and isinstance?

561


How is string immutable in java?

539


what is meant by abstract class?

646






how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

1901


Where are local variables stored?

510


What do you mean by light weight and heavy weight components?

551


Explain, java is compatible with all servers but not all browsers?

604


how to split string in java?

647


How big is a 32 bit integer?

526


What is a variable in java?

528


Why generics are used in java?

548


What is the use of object and class classes?

565


What is bitwise complement?

498