Java HashSet – HashSet in Java

Java HashSet is the most popular implementation of Set interface. java.util.HashSet is backed by a HashMap. HashSet extends AbstractSet class and implements Set, Cloneable and Serializable interfaces. Java HashSet Some of the important points about HashSet in java are; HashSet doesn’t allow duplicate entries. HashSet allows null as a value. …

Java HashMap – HashMap in Java

Java HashMap is one of the most popular Collection classes in java. Java HashMap is Hash table based implementation. HashMap extends AbstractMap class that implements Map interface. Java HashMap Some of the important points about HashMap in Java are; Java HashMap allows null key and null values. HashMap is not …

Java List – List in Java

Java List is an ordered collection. Java List is an interface that extends Collection interface. Java List provides control over the position where you can insert an element. You can access elements by their index and also search elements in the list. Java List Some of the important points about …

Java ArrayList

Java ArrayList is one of the most widely used Collection class. java.util.ArrayList class implements java.util.List interface. Java ArrayList also implements RandomAccess, Cloneable and Serializable interfaces. Java ArrayList class extends AbstractList class that is the skeleton implementation of List interface. Java ArrayList Java ArrayList is the resizable array implementation of List …