A Problem in Using Enumeration

Once you are finished iterating through the values of an Object implementing the Enumeration interface, the next time youtry to use

 hasMoreElements()

it will return false. Many developers are not aware of this, which leads to blind usage of Enumeration, leading to errors in the code and sometimes in the logic. The developer has to follow a learning curve to figure it out.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: