What is the difference between Iterator and ListIterator?
Both are useful to retrieve elements from a collection. Iterator can retrieve the elements only in forward direction. But ListIterator can retrieve the elements in forward and backward direction also. So the ListIterator is preferred to Iterator.