What Are The Basic Differences Between Enumeration And Iterator Interfaces?

devquora
devquora

Posted On: Feb 22, 2018

 

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.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java Play Interview Questions

    What Is JAVA Play Framework?

    Play Framework makes it easy to build scalable, fast and real-time web applications with Java and Scala. In other words..

    Java Play Interview Questions

    What Do You Mean By The Java Collection Framework?

    Collections are utilized in various programming languages and basic release contained some classes for collections such..

    Java Play Interview Questions

    What Are The Advantages Of Collections Framework?

    Some of the advantages of collections framework are: The reduce development effort by using core collection classes rat..