Possible Duplicate:
difference between Iterator and Listiterator?
Recently,while I was goint through javadocs, I found two methods in List interface : iterator() and listIterator(). Apart from different return type, what are the other differences between these two methods? Below is the java doc for both method.
// List Iterators
/**
* Returns a list iterator over the elements in this list (in proper
* sequence).
*
* @return a list iterator over the elements in this list (in proper
* sequence)
*/
ListIterator<E> listIterator();
And
/**
* Returns an iterator over the elements in this list in proper sequence.
*
* @return an iterator over the elements in this list in proper sequence
*/
Iterator<E> iterator();