1.

Why We Use List Interface? What Are Main Classes Implementing List Interface?

Answer»

A java LIST is a “ordered” collection of elements. This ordering is a zero based index. It does not CARE about duplicates. Apart from methods DEFINED in Collection interface, it does have its own methods also which are largely to MANIPULATE the collection based on index location of element. These methods can be grouped as search, get, iteration and range view. All above operations support index locations.

The main classes implementing List interface are: Stack, Vector, ArrayList and LinkedList. Read more about them in java documentation.

A java list is a “ordered” collection of elements. This ordering is a zero based index. It does not care about duplicates. Apart from methods defined in Collection interface, it does have its own methods also which are largely to manipulate the collection based on index location of element. These methods can be grouped as search, get, iteration and range view. All above operations support index locations.

The main classes implementing List interface are: Stack, Vector, ArrayList and LinkedList. Read more about them in java documentation.



Discussion

No Comment Found