Question: what is the difference between iterator and enumeration?
Answer: The main difference between Iterator and Enumeration is removal of the element while traversing the collection. Iterator can remove the element during traversal of collection as it has remove() method. Enumeration does not have remove() method. ... Iterator is the interface and found in the java.