Posted On: Feb 22, 2018
A list is one of the interfaces in the Java collection framework. It stores an ordered collection of data and objects. Duplicate values can also be stored in the list interface. The insertion and removal of elements in the list are based on the index.
The list interface has various default methods for manipulating data in it. Some of the important methods used in the list are added, addAll, clear, get, isEmpty, etc.
// Example of list declaration public interface List extends Collection
Never Miss an Articles from us.