Differentiate between Vector and Array List.

devquora
devquora

Posted On: Feb 22, 2018

 

Array ListVector
It is not synchronized.It is synchronized.
It is fast since it is non-synchronized.It is slow since it is threaded safe.
It does not define the increase in size.Vector defines the increase in size.
It can only use Iterator for traversing an Array List.Vector utilizes both classes such as Enumeration and Iterator, except Hashtable.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java 10 Interview Questions

    What is the technique adopted to create an immutable class?

    In order to create an immutable class, follow the below steps:..

    Java 10 Interview Questions

    What methodology can be utilized to link to a database?

    The following steps can be utilized to link to a database:..

    Java 10 Interview Questions

    Enlist some features of JDK.

    It represents a Java Development Kit...