Enumerator, Iterator and ListIterator

Enumeration and Iterator

Operation Enumeration Iterator
Speed Faster Slower
Object removal from collection N/A Available

Iterator and ListIterator

Operation Iterator ListIterator
Traverses List, Set and Map Only List
Direction Forward only Backward Forward both
Guaranteed order of iteration N/A Available
Add N/A Available

Leave a Reply

Your email address will not be published. Required fields are marked *