I take it both serve the same purpose. Enumeration interface has become obsolete but in case of HashTable enumerator would be preferred as HashTable does not directly support itertors.
i would like to know can i altogether leave enumerator and can depend on iterator to access elements one by one. Why do we give preference to iterator over enumerator. What is the difference between the two if any.