1.

What Are The Basic Differences Between Enumeration And Iterator Interfaces?

Answer»

An Enumeration is twice as fast as Iterator and it is USED for very less MEMORY. Enumeration also is used for is very basic and fits to basic needs. But the Iterator is safer as compared to Enumeration because it ALWAYS denies different threads to modify the group object is being iterated by it. The Iterator provides the CALLER to destroy elements from the underlying that is not possible with Enumeration.

An Enumeration is twice as fast as Iterator and it is used for very less memory. Enumeration also is used for is very basic and fits to basic needs. But the Iterator is safer as compared to Enumeration because it always denies different threads to modify the group object is being iterated by it. The Iterator provides the caller to destroy elements from the underlying that is not possible with Enumeration.



Discussion

No Comment Found