search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
23 views
asked Guru 24.6k points 29 51 75

1 Answer

0 votes
Both are useful to retreive elements from a collection. Iterator has methods whose names are easy to follow and Enumeration methods are difficult to remember. Also Iterator has an option to remove elements from the collection which is not available in Enumeration. So, Iterator is preferred to Enumeration.
answered Guru 39.1k points 10 21 31

Related questions

1 vote
1 answer 27 views
27 views
what are the object-oriented methodologies.
asked denis Sr Member 2.7k points 14 29 59
0 votes
1 answer 13 views
13 views
asked smith Geek 15.3k points 14 39 58
0 votes
1 answer 15 views
15 views
asked sara Guru 24.6k points 29 51 75
0 votes
1 answer 35 views
35 views
asked sara Guru 24.6k points 29 51 75
0 votes
1 answer 10 views
10 views
asked smith Geek 15.3k points 14 39 58
...