Have a Question?

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

Category: Collection Framework

HashSet in Java and what is FillRatio or LoadFactor?

HashSet in Java and what is FillRatio or LoadFactor?

HashSet in Java and what is FillRatio or LoadFactor? The underlying data-structure is Hashtable. Duplicate objects are not allowed. Insertion order is not preserved and it is based on HashCode of objects. Null insertion is possible (only once). Heterogeneous objects are allowed. Implements serializable and cloneable but not the RandomAccess interface. . . . Read more

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