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 the difference between hashmap and hashtable? What is an interface?

0 Answers  


What is a char in java?

0 Answers  


Is it necessary that each try block must be followed by a catch block?

0 Answers  


What about instanceof operator in java?

0 Answers  


Can you call a method in a method?

0 Answers  


a thread is runnable, how does that work? : Java thread

0 Answers  


Is ResultSet class?

5 Answers   Bally Technologies, TCS,


Explain the importance of finally block in java?

0 Answers  


why ,we are using jsp and html.which one is better?

2 Answers   Photon,


Write java program to reverse string without using api?

0 Answers  


Can I learn java in 3 months?

0 Answers  


What is java console application?

0 Answers  


Categories