What is the difference between Iterator and Enumeration?
Page 1 of 1
What is the difference between Iterator and Enumeration?
Iterator
Iterator can traverse legacy and non-legacy elements.
Iterator is fail-fast.
Iterator is slower than Enumeration.
Enumeration
Enumeration can traverse only legacy elements.
Enumeration is not fail-fast.
Enumeration is faster than Iterator.
Iterator can traverse legacy and non-legacy elements.
Iterator is fail-fast.
Iterator is slower than Enumeration.
Enumeration
Enumeration can traverse only legacy elements.
Enumeration is not fail-fast.
Enumeration is faster than Iterator.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum