What is the difference between Iterator and ListIterator?
Page 1 of 1
What is the difference between Iterator and ListIterator?
Iterator traverses the elements in forward direction only whereas ListIterator traverses the elements in forward and backward direction.
Iterator
Iterator traverses the elements in forward direction only.
Iterator can be used in List, Set and Queue.
ListIterator
ListIterator traverses the elements in backward and forward directions both.
ListIterator can be used in List only.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum