what is the difference between ArrayList and Vector

Answer Posted / mohammed salim

1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a default
size of 10.

Is This Answer Correct ?    89 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you write a loop indefinitely in java programming?

547


What is meant by object?

570


Is java good for beginners?

577


Can a private method of a superclass be declared within a subclass?

525


What method is used to specify a container's layout in java programming?

536






How is it possible for two string objects with identical values not to be equal under the == operator?

521


How arrays are stored in memory in java?

507


What is the use of predicate in java 8?

488


Can we have multiple classes in a single file?

508


What are the main concepts of oops in java?

589


Explain different states of a thread in java?

578


What data structures are used to perform recursion?

598


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

659


What are static methods?

572


What are the advantages and disadvantages of object cloning?

566