WHAT IS THE DIFFERENCE BETWEEN ITERATOR AND ENUMERATION?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 685  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between Iterator and Enumeration?

    Iterator
    1)Iterator can traverse legacy and non-legacy elements.
    2)Iterator is fail-fast.
    3)Iterator is slower than Enumeration.


    Enumeration
    1)Enumeration can traverse only legacy elements.
    2)Enumeration is not fail-fast.
    3)Enumeration is faster than Iterator.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!