Have a Question?

If you have any question you can ask below or enter what you are looking for!

Tag: Interview question of collection

Difference between ArrayList and LinkedList in Java?

Difference between ArrayList and LinkedList in Java?

  Difference between ArrayList and LinkedList in Java? The underlying data structure is double LinkedList. Insertion order is preserved. Duplicate objects are allowed. Heterogeneous object allowed. Null insertion is possible. LinkedList implements Serializable and Cloneable interface but not RandomAccess LinkedList is the best choice if our frequent operation is insertion . . . Read more

Explain ArrayList and difference between ArrayList and Vector?

Explain ArrayList and difference between ArrayList and Vector?

Explain ArrayList and difference between ArrayList and Vector? ArrayList is a class, that uses a dynamic array for storing the elements. It extends AbstractList class and implements List interface. The underlying data structure is a Resizable array or growable array. Duplicates are allowed. Insertion order is preserved. Heterogeneous objects are . . . Read more