What is the List interface?

What is the List interface?

The List interface provides an ordered collection.
Elements in the List can be accessed using integer indexes.

Some Methods of the List are:

1. void add(int index, Object element)
2. boolean add(Object o)
3. boolean equals(Object o)
4. Object get(int index)
5. int hashCode()
6. int indexOf(Object o)
7. Iterator iterator()
8. Object remove(int index)
What is an Iterator interface?
What is an Iterator interface? - An iterator acts over a collection like an Enumeration. However, Iterators differ from enumerations in two ways:...
What is the Map interface?
What is the Map interface? - A Map maps keys to values. It cannot contain duplicate keys. The three general-purpose Map implementations are:..
What is the Collection interface?
What is the Collection interface? - A collection represents a group of objects, known as its elements. It is an interface and is a member of the Java Collections Framework...
Post your comment