Question: what is the difference between iterator and enumeration in java?
Answer: Enumeration and Iterator are two interfaces in java. util package which are used to traverse over the elements of a Collection object. ... Using Enumeration, you can only traverse the Collection object. But using Iterator, you can also remove an element while traversing the Collection.