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

Posted on    May-12-2015 1:34 AM

 Java Java  Collection 
 1 Answer(s)
  539  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    May-12-2015 1:34 AM

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

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