What is an enumeration class?
Answers were Sorted based on User's Feedback
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 |
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 |
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.
Are arrays immutable in java?
What are Inner classes?
What is casting?
Why do we need wrapper class?
Can we assign integer value to char in java?
What is final modifier?
What is a boolean used for?
Is boolean a data type in java?
Why doesn't the java library use a randomized version of quicksort?
What is the generic function?
how to use finalize()Method to resources