Enumeration vs Iterator
1.Enumeration is older its there from JDK1.0 where as iterator is new when compared to
Enumeration and is improved version.
2.Enumeration are only applicable for legacy classes e.g Hashtable, Vector. where as iterator is
3.Enumeration has hasMoreElements(),nextElement() methods where as iterator has hasNext(),next(),remove()
4.iterator is thread safe while Enumeration is not.