dcsimg
Explain Enumeration an iteration?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   karthick_s
Posted On:   Friday, July 15, 2005 02:00 AM


Explain Enumeration an iteration? which is best?

Re: Explain Enumeration an iteration?

Posted By:   Anonymous  
Posted On:   Monday, August 29, 2005 08:45 AM

Both Enumeration and Iteration allow you to loop over a collection in a generic manner without a concrete looping implementation. Enumeration allows a static looping over the collection - you cannot modify the elements, Iteration allows removal of elements. You need to be watchful while calling the remove() method of the Iterator to avoid ConcurrentModificationException.

Re: Explain Enumeration an iteration?

Posted By:   Almagest_FUTT  
Posted On:   Friday, July 15, 2005 08:11 AM

Enumeration is deprecated.
About | Sitemap | Contact