What is List interface ?

What is List interface ?

List is an ordered collection of elements. The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index. Unlike sets, lists typically allow duplicate elements. The List interface includes operations for the following:

    * Positional access 
    * Search
    * Iteration 
    * Range-view 

Useful methods of the List Interface:

  * add()
  * clear()
  * contains()
  * get()
  * isEmpty()
  * listIterator()
  * remove()
  * size()

Date:2014-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher