What is List Interface in Java?
A List is an ordered Collection.
Lists may contain duplicate elements.
Positional Access – Manipulates elements based on their numerical position in the list.
Search – Searches for a specified object in the list and returns its index position.
List Interface Methods:
void add(int index,Object element) – Insert the specified element at the specified position.
boolean addAll(int index,Collection c) – Inserts all the elements that are present in the collection…