Question: what is the difference between iterator and enumeration interface?
Answer: The main difference between Iterator and Enumeration is that Iterator is a universal cursor, can be used for iterating any collection object. On the other hand, the Enumeration is used for traversing object of legacy class only.