Thursday 5 April 2012

Interface - Enumeration


Enumeration


The enumeration interface defines the methods by which you can enumerate.The element in a collection of objects.Enumeration is considered absolute for new code.

Enumeration specifies the following two Methods:-
           
boolean has MoreElements()
The has more Elements() return true while there are still more elements to extract and false when all the  elements have been enumerated.

Object nextElement()
nextelement() returns the next object in the enumeration as a generic object reference.

Posted By  : Ruchita Pandya

No comments:

Post a Comment