Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. It allows sequential access to all the elements stored in the collection.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   enum   enumeration interface   basic interview question|
Try 2 Question(s) Test
|What are concepts introduced with Java 5 ?|
|Enums cannot be declared ..|
|Can we override compareTo method for Enumerations ?|
|enums are intrinsically ..|
|When were Enums introduced in Java ?|
|What is an Enum type ?|
|If I try to add Enum constants to a TreeSet, What sorting order will it use ?|
|Can we extend an Enum ?|
|Shall we keep the enumeration name in all capital letters as it contains all constants ?|