WHAT IS THE DIFFERENCE BETWEEN ITERATOR AND LISTITERATOR?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 588  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between Iterator and ListIterator?

    Iterator
    1)Iterator traverses the elements in forward direction only.
    2)Iterator can be used in List, Set and Queue.


    ListIterator
    1)ListIterator traverses the elements in backward and forward directions both.
    2)ListIterator can be used in List only.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!