Home > DeveloperSection > Interviews > What is the difference between Iterator and ListIterator?

Posted on    May-12-2015 1:34 AM

 Java Java  Collection 
Ratings:
 1 Answer(s)
  386  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-12-2015 1:34 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick