ProAnswers.org

What is difference between Iterator and Enumeration?

  1. Iterator can traverse legacy and non-legacy elements.

1)Enumeration can traverse only legacy elements.

  1. Iterator is fail-fast.

2)Enumeration is not fail-fast.

  1. Iterator is slower than Enumeration.

  2. Enumeration is faster than Iterator.