Originally posted by d sitaramayya:
Hi,
non-syncronized classes are using only iterator.
syncronized classes are using only Enumeration.
Regards,
D.Sitaramayya.
That's not true. Vector is a synchronized class, and it has an iterator() method. It didn't
originally have an iterator() method, but this was added back around JDK 1.2 when collections were brought into the main libraries. Now
all collections have iterators, including Vector. Enumeration is just an older version of the same idea, with longer method names and one less method (remove()). So there's almost no reason to use Enumeration now.