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

What is string english?

0 Answers  


What is the difference between this() and super() in java?

0 Answers  


why java is not supporting multiple inheritence?

3 Answers  


Explain the difference between map and flatmap stream operation?

0 Answers  


Write java program to reverse string without using api?

0 Answers  






What is functional interface in javatpoint?

0 Answers  


Explain the difference between the public, private, final, protected, and default modifiers?

0 Answers  


What does flagged out mean?

0 Answers  


What is Map interface?

3 Answers   Wipro,


Is hashset sorted in java?

0 Answers  


"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.

2 Answers  


what is static import in java? Explain

0 Answers  


Categories