Java List Interface

List interface in java is ordered collection so it can store elements in sequence. List interface is sub interface and it extends to Collection interface. List interface can hold duplicate elements so you can insert duplicate elements too. You can access elements from list by integer index. Collection framework has many interfaces in java and list … Read more

Java Collection Interface

Collection is an interface in java. Collection interface extends Iterable interface. In hierarchy, Collection interface is root of List, Queue and Set interfaces. It represents unit of its elements. i.e. group of objects. Some collections do not allow duplicate elements but some allows duplicate elements. Collection interface is base on which collection framework is built. … Read more