What is an enumeration class?

Answers were Sorted based on User's Feedback



What is an enumeration class?..

Answer / janet

An object that implements the Enumeration interface
generates a series of elements,one at a time. It has two
methods,namely hasMoreElements() and nextElement().
hasMoreElements() tests if this enumeration has more
elements and nextElement() method returns successive
elements of the series.

Is This Answer Correct ?    3 Yes 1 No

What is an enumeration class?..

Answer / ravikiran(aptech mumbai)

enumeration class contains the method elements to traverse
threw the elements of collection

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Core Java Interview Questions

Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.

2 Answers  


Are arrays immutable in java?

0 Answers  


What are Inner classes?

4 Answers  


What is casting?

5 Answers  


Why do we need wrapper class?

0 Answers  






Can we assign integer value to char in java?

0 Answers  


What is final modifier?

0 Answers  


What is a boolean used for?

0 Answers  


Is boolean a data type in java?

0 Answers  


Why doesn't the java library use a randomized version of quicksort?

0 Answers  


What is the generic function?

0 Answers  


how to use finalize()Method to resources

4 Answers   TCS,


Categories